Jul 02, 2011, 9:14 PM
What's the best method to return a filtered grid to the server?
How can I return a store that has been filtered? I need to be able to store which rows the user was currently looking at. My filter function is the one used on the examples site.
var applyFilter = function (field) {
//alert('applyFilter');
if(field){
var id = field.id,
task = new Ext.util.DelayedTask(function(){
var f = Ext.getCmp(id);
f.focus();
f.el.dom.value = f.el.dom.value;
});
task.delay(100);
}
//alert(#{TestFilter}.getValue());
//#{GridPanel1}.getStore().filter('Race', #{TestFilter}.getValue());
#{GridPanel1}.getStore().filterBy(getRecordFilter());
};
There is also a pagingtoolbar in play, so the store does not see all the records at one time. How can I return all the records (minus the filtered ones) to the server?