Oct 24, 2011, 1:52 PM
Remote Filter with HttpProxy
Hi,
Can you please direct me into the right direction how to clear the filter parameters when using HttpProxy on a grid. My grids are generated from code behind. I am able to set filters on it using the GridFilters plugin. However once I put a filter on my grid and then try to regenerate the grid, the filter parameter still gets passed as shown in firebug.
As a reference, I also posted how I generate my grid from code behind called through DirectEvent.
http://forums.ext.net/showthread.php...sing-HttpProxy
I've tried the following but to no avail:
(1) adding a beforedestroy listener to my grid:
grid.Listeners.BeforeDestroy.Handler = "function() {this.plugins[0].clearFilters();}";
(2) adding an empty autoload filter parameter to my store:
store.AutoLoadParams.Add(new ExtJS.Parameter { Name = "filter", Value = EmptyValue.EmptyString.ToString(), Mode = ParameterMode.Value });
I found this thread and Vladimir mentioned something on 12/23/2010 about clearing the response. I'm not quite sure how to implement this in my case.
http://forums.ext.net/showthread.php...sing-Httpproxy
I would really appreciate your help on this one as I am really stuck.
Thanks,
Can you please direct me into the right direction how to clear the filter parameters when using HttpProxy on a grid. My grids are generated from code behind. I am able to set filters on it using the GridFilters plugin. However once I put a filter on my grid and then try to regenerate the grid, the filter parameter still gets passed as shown in firebug.
As a reference, I also posted how I generate my grid from code behind called through DirectEvent.
http://forums.ext.net/showthread.php...sing-HttpProxy
I've tried the following but to no avail:
(1) adding a beforedestroy listener to my grid:
grid.Listeners.BeforeDestroy.Handler = "function() {this.plugins[0].clearFilters();}";
(2) adding an empty autoload filter parameter to my store:
store.AutoLoadParams.Add(new ExtJS.Parameter { Name = "filter", Value = EmptyValue.EmptyString.ToString(), Mode = ParameterMode.Value });
I found this thread and Vladimir mentioned something on 12/23/2010 about clearing the response. I'm not quite sure how to implement this in my case.
http://forums.ext.net/showthread.php...sing-Httpproxy
I would really appreciate your help on this one as I am really stuck.
Thanks,