R – flex datagrid focus cell

actionscript-3airapache-flex

I have a datagrid in which a column s having cusomized itemRenderer(textflow on canvas). Now I want to perform find text operation on each cell's textflow. For that I able to do find text operation on a focused cell.
But now my requirment is to find the the text in all.

Thanks in advance.

Best Answer

If you're using a custom itemRenderer, can you have the searchable text for it be derived from the data property? This way you can just set the dataProvider for the dataGrid and search that.

<mx:itemRenderer>
    <mx:Component>
        <ns1:customTextBox searchedText={data.searchedText} text={data.text}/>    
    </mx:Component>
</mx:itemRenderer>

Then you modify data.searchedText, which is linked to your dataProvider (remember to use an ArrayCollection so it will respond to dataChange events).

Related Topic