You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mark goldin <ma...@gmail.com> on 2013/07/12 23:31:29 UTC

Keeping text selection in DataGird while scrolling

I am using RichEditableText for an item renderer. The selected text in a
cell will get unselected after the row with selected text goes out the
view. How can I keep text selection for all time?

Thanks

Re: Keeping text selection in DataGird while scrolling

Posted by Gary Young <fl...@gmail.com>.
itemrenderer has a data property which is the model, in where you should
keep text selected status, but only triger update in renderer to have great
performance, if you really bind text selection(the view)to data, it will
work.

I have concrete example if I am allow to post link here.

-Gary
On Jul 12, 2013 5:31 PM, "mark goldin" <ma...@gmail.com> wrote:

> I am using RichEditableText for an item renderer. The selected text in a
> cell will get unselected after the row with selected text goes out the
> view. How can I keep text selection for all time?
>
> Thanks
>

Re: Keeping text selection in DataGird while scrolling

Posted by Alex Harui <ah...@adobe.com>.
useVirtualLayout=false

On 7/12/13 6:49 PM, "mark goldin" <ma...@gmail.com> wrote:

>Is there a way of not using virtual renderers? Just want to see what kind
>of performance I am going to get.
>
>
>On Fri, Jul 12, 2013 at 8:09 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> It will be a trade-off of the cost of doing that vs not having virtual
>> renderers.
>>
>> On 7/12/13 5:27 PM, "mark goldin" <ma...@gmail.com> wrote:
>>
>> >But in order to re-highlight text I need to keep selection info
>>somewhere
>> >to reapply it or just apply it. Is that the direction to take?
>> >
>> >
>> >On Fri, Jul 12, 2013 at 5:42 PM, Alex Harui <ah...@adobe.com> wrote:
>> >
>> >> If you are using virtual renderers then you need to re-highlight text
>> >>when
>> >> the renderer is updated.
>> >>
>> >> There are options about showing selection when inactive that you may
>> >>need
>> >> to use.
>> >>
>> >> On 7/12/13 2:31 PM, "mark goldin" <ma...@gmail.com> wrote:
>> >>
>> >> >I am using RichEditableText for an item renderer. The selected text
>>in
>> >>a
>> >> >cell will get unselected after the row with selected text goes out
>>the
>> >> >view. How can I keep text selection for all time?
>> >> >
>> >> >Thanks
>> >>
>> >>
>>
>>


Re: Keeping text selection in DataGird while scrolling

Posted by mark goldin <ma...@gmail.com>.
Is there a way of not using virtual renderers? Just want to see what kind
of performance I am going to get.


On Fri, Jul 12, 2013 at 8:09 PM, Alex Harui <ah...@adobe.com> wrote:

> It will be a trade-off of the cost of doing that vs not having virtual
> renderers.
>
> On 7/12/13 5:27 PM, "mark goldin" <ma...@gmail.com> wrote:
>
> >But in order to re-highlight text I need to keep selection info somewhere
> >to reapply it or just apply it. Is that the direction to take?
> >
> >
> >On Fri, Jul 12, 2013 at 5:42 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> If you are using virtual renderers then you need to re-highlight text
> >>when
> >> the renderer is updated.
> >>
> >> There are options about showing selection when inactive that you may
> >>need
> >> to use.
> >>
> >> On 7/12/13 2:31 PM, "mark goldin" <ma...@gmail.com> wrote:
> >>
> >> >I am using RichEditableText for an item renderer. The selected text in
> >>a
> >> >cell will get unselected after the row with selected text goes out the
> >> >view. How can I keep text selection for all time?
> >> >
> >> >Thanks
> >>
> >>
>
>

Re: Keeping text selection in DataGird while scrolling

Posted by Alex Harui <ah...@adobe.com>.
It will be a trade-off of the cost of doing that vs not having virtual
renderers.

On 7/12/13 5:27 PM, "mark goldin" <ma...@gmail.com> wrote:

>But in order to re-highlight text I need to keep selection info somewhere
>to reapply it or just apply it. Is that the direction to take?
>
>
>On Fri, Jul 12, 2013 at 5:42 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> If you are using virtual renderers then you need to re-highlight text
>>when
>> the renderer is updated.
>>
>> There are options about showing selection when inactive that you may
>>need
>> to use.
>>
>> On 7/12/13 2:31 PM, "mark goldin" <ma...@gmail.com> wrote:
>>
>> >I am using RichEditableText for an item renderer. The selected text in
>>a
>> >cell will get unselected after the row with selected text goes out the
>> >view. How can I keep text selection for all time?
>> >
>> >Thanks
>>
>>


Re: Keeping text selection in DataGird while scrolling

Posted by mark goldin <ma...@gmail.com>.
But in order to re-highlight text I need to keep selection info somewhere
to reapply it or just apply it. Is that the direction to take?


On Fri, Jul 12, 2013 at 5:42 PM, Alex Harui <ah...@adobe.com> wrote:

> If you are using virtual renderers then you need to re-highlight text when
> the renderer is updated.
>
> There are options about showing selection when inactive that you may need
> to use.
>
> On 7/12/13 2:31 PM, "mark goldin" <ma...@gmail.com> wrote:
>
> >I am using RichEditableText for an item renderer. The selected text in a
> >cell will get unselected after the row with selected text goes out the
> >view. How can I keep text selection for all time?
> >
> >Thanks
>
>

Re: Keeping text selection in DataGird while scrolling

Posted by Alex Harui <ah...@adobe.com>.
If you are using virtual renderers then you need to re-highlight text when
the renderer is updated.

There are options about showing selection when inactive that you may need
to use.

On 7/12/13 2:31 PM, "mark goldin" <ma...@gmail.com> wrote:

>I am using RichEditableText for an item renderer. The selected text in a
>cell will get unselected after the row with selected text goes out the
>view. How can I keep text selection for all time?
>
>Thanks