The principle of virtual renderers is that they would do their
highlighting as they get scrolled onto the screen, not all at once.

On 7/12/13 5:11 PM, "mark goldin" <[email protected]> wrote:

>No, I am not filtering dataprovider. I need to search thru all cells in
>the
>column and highlight all instances of search text at once. Can be hundreds
>of rows.
>
>
>On Fri, Jul 12, 2013 at 5:40 PM, Alex Harui <[email protected]> wrote:
>
>> I'm not sure what are you trying to accomplish.  You could filter the
>> dataprovider so that only rows with text hits are shown in the DG.  That
>> code would not be in the renderer.  Otherwise, code in the renderer that
>> finds text hits in the data item it is responsible for should only be
>> called for visible rows if you are using virtual layout.
>>
>> On 7/12/13 2:18 PM, "mark goldin" <[email protected]> wrote:
>>
>> >I need to come up with a solution for searching a text in a column.
>>What I
>> >have now is clearly showing that the following function in the item
>> >renderer:
>> >private function
>> >onTextSearchEvent(event:ApplicantformTextSearchEvent):void
>> >{
>> >var _startingPosition:int = Question.text.search(event.textToSearch);
>> >trace(_startingPosition);
>> >if (_startingPosition != -1)
>> >{
>> >Question.selectRange(_startingPosition, _startingPosition +
>> >event.textToSearch.length);
>> >}
>> >}
>> >
>> >does not print dataPrvider.length times as what I would want. But how
>>can
>> >I
>> >show a number of text instances being found if it does not go thru
>>every
>> >row in the datagrid?
>>
>>

Reply via email to