Question : custom Flex DataGrid Filter

Hi Experts,

I need to apply filter on custom Flex DataGrid using checkbox control which uses array collection filter Function. I have applied the logic on default DataGrid and it is working fine.
custom DataGrid has additional features in filtering. I need to add  more options because I have requirements to use  checkbox control with counter.

I have exported the project for you to look on to the source code and you will notice that only second DataGrid (Default) filtered based on the check box. I need to apply the same on the first DataGrid (Custom)  Your quick response is highly  appreciated.

The project source code can be loaded from this link

http://www.easy-share.com/1910961618/CustomDataGridFiter.zip



Thanks,

Answer : custom Flex DataGrid Filter

By default MDatagrid doesnot allow you to modify the dataprovider.

http://www.iwobanas.com/2009/06/datagrid-with-client-side-filtering-and-searching/

"By default MDataGrid is using a local copy of data provider and doesn’t support removing/modifying items.
You can try setting copyDataProvider=false so that data provider will not be copied but I can’t guarantee that this will support deleting items."


So I changed your code of MDatagrid with copyDataProvider=false. Its working for me. But drawback will be that component won't have copy of database and filters added will be directly affecting the dataprovider.
1:
2:
3:
<controls:MDataGrid dataProvider="{myData}" copyDataProvider="false"
							width="100%"
							height="100%">
Random Solutions  
 
programming4us programming4us