PDA

View Full Version : how remove group and filter



maxdiable
Jan 23, 2010, 11:51 AM
hi :)

it' possible from client o server side remove filter and group activated in gridpanel ?

regards

plykkegaard
Jan 23, 2010, 7:46 PM
Hi

We have something like this in an AjaxEvent triggered by a button



// Find the control and ...
ext.GridFilters _gridFilters = _gridPanel.FindControl("gridFilters") as ext.GridFilters;
if (_gridFilters != null)
{
// ... clear all filters on the columns
_gridFilters.ClearFilters();
}

You can also try this (javascript) assuming that you have set the ID?


#{gridFilters}.clearFilter();

Not sure if it'll work though :-)

rgds

maxdiable
Jan 24, 2010, 5:08 AM
tank's the server command work fine :)
but for remove group ? any solution ?
tank's :)