PDA

View Full Version : Filtering grid values with a button



Ziigmund
5 Jun 2011, 11:40 PM
Hi,
I'm sorry for my english...
i need to filter the results showed in a grid with a button in a tbar; when i click the button i want to show only the results with a "date" between +/- 24h (date is a dd/mm/yyyy mm:hh format).
Thx all

friend
6 Jun 2011, 3:52 AM
Check the API docs for Ext.data.Store (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.data.Store) and expand the filterBy(function, [scope]) method.

Each record in the store gets passed to the filberBy function, where you can perform any custom filtering logic.

Ziigmund
6 Jun 2011, 7:31 AM
Thx =D>