PDA

View Full Version : Clearing selections while using ListFilter



uzairpm
20 Sep 2011, 4:50 AM
Hi all,

I'm using Grid Filters(plugin) on an editor grid. I have made use of List Filter for one of the columns. On a refresh of the grid i'm triggering a clearFilters(). That does not seem to reset the selections made. I guess overrides are the way to go.

But the following snippet does not seem to work,



Ext.override(Ext.ux.grid.filter.ListFilter, {
setActive: function(active, suppressEvent) {
if (this.active && !active) {
for(var i=0;i<this.menu.items.length; i++) {
this.menu.items.itemAt(i).setChecked(false, true);
}
}
Ext.ux.grid.filter.ListFilter.superclass.setActive.call(this, active, suppressEvent);
}
});


Any help is appreciated.:)
Thanks.