PDA

View Full Version : StoreFilter operation like DATABASE !! very urgent



sunil_khanna
21 Aug 2011, 11:44 PM
How to filter data from from store Using StoreFilter

stock("sasd",123213);
stock("aaryan",122);
stock("john",12321);


StoreFilter<ModelData> numberFilter = new StoreFilter<ModelData>() { @Override public boolean select(Store<ModelData> store, ModelData parent, ModelData item, String property) { return ((Integer)item.get(property)) > 122; } }; store.addFilter(numberFilter);


suppose if i want result from comparing more than one column or one value , for that how can i achieve??
ex . select row where name="aaryan" && name="john"

(more than one value)


please give me an example..it's urgent

Ersmarker
22 Aug 2011, 1:38 AM
Duplicate of thread:
http://www.sencha.com/forum/showthread.php?144377-GXT-Grid-data-fetching-like-sql-query-!!-very-urgent (http://www.sencha.com/forum/showthread.php?144377-GXT-Grid-data-fetching-like-sql-query-!!-very-urgent)