mercredi 7 mai 2014

Filtering on Proxy store

Hello,

A colleague of mine is working on a grid component in Ext 4.2.x. The grid has a paginated functionality and works pretty well. Fast and nice. But with a lot of records loaded in, it is handy to have a filter functionality.


There is a filter in the Grif component. This one works only on the grid, but we want a filter that works on the store. My colleague found a way to trigger a filter method, the result of this method is exactly what we want:



Code:



grids.getStore().filter('personid',/1222.*/);
pageidtoolbar.doRefresh();

If he puts that in the console, the grid will filter just like we want to. However, the information on the screen like: total records and total pages doesn't get updated. Plus, the filter functionality in the grid does not respond to the console method.

Is there a way to fix my problems? To summarize what I want:

- Working paginated grid

- Working filter mechanism on the complete proxy store

- When filtering, the paginate toolbar must be updated to the filtered results. Not to the total results.

- UI Filter mechanism updated


I hope someone can help us!


Thanks in advance!


Sincerely,

Guido Visser





Aucun commentaire:

Enregistrer un commentaire