I have a listgrid which is not bound to datasource. I have set the data in listgrid by using:
ListgridID.setData(data);
I want to perform client side filtering. I have turned on showFilterEditor:true and in dataProperties,fetchMode has been set to “local”. But the client side filtering doesn’t happen.
Please tell me if I am missing any other settings. It would be better if you could provide me with an example to perform this kind of filtering where datasource is not being used.
I modified my code a bit. I have used datasource which is making server call for all operations. I have fetched data using this datasoure now and then set data in listgrid:
ListgridID.setData(data);
Due to certain business rules constraint, I can not use ListgridID.fetchData(). I kept the other settings same but then also client side filtering is not happening. Please suggest for the same.
i went through your suggestion. I cannot craete the datasource with clientonly: true and provide data via testdata property since I have to use the existing the datasource which is making server call for fetch operation. Now please suggest for this kind of implementation.
Not sure where your confusion is: either the ListGrid has a DataSource, in which case filtering just works, or it doesn’t yet, in which case you need to create a client-only DataSource as previously discussed.
If you are concerned about duplicating the field definitions, not that you can use dataSource.inheritsFrom to create a clientOnly:true DataSource that inherits the fields of an existing DataSource which is not clientOnly.