PDA

View Full Version : one Grid, 2 Filters.



jorgeluislay
26 Nov 2012, 3:25 PM
Hi!

Im trying to add a filter which filters the store twice. The problem is, always when i filter the store, the first filter will be overwritten by the second one. How can i put this in a function ? I saw also some other post but it didnt help at all!




store.filter('record-in-store', 'filter string 1', false, true);
store.filter('another-record', 'filter string 2', false, true);



For some people this might be very easy.. I-|~o):-/

willigogs
26 Nov 2012, 4:13 PM
http://docs.sencha.com/ext-js/3-4/#!/api/Ext.data.Store-method-filter

jorgeluislay
29 Nov 2012, 7:37 AM
Im using ExtJs 3.0.1 so i couldnt put some functions in filter() and after hard work, filterBy accepts the functions.

Can you tell me waths the difference between this two ?