PDA

View Full Version : Easy way to reset store filter?



jacstofberg
21 Oct 2010, 11:54 AM
Is there an easy way to reset or clear a store filter? e.g. with one line of code on the push of a button.

Thanks,
Jac

jacstofberg
21 Oct 2010, 12:03 PM
I found one way:


store.filterBy(function(record){return true;})

This seems to be the easiest way I could come up with for clearing a list search using filters at the click of a button.

Anyone else has a more elegant way?