I have a Reset button that should remove all filters - clearing the textbox as well as setting the menu to No Filter.
The problem is that I can only remove the text and the filter choice from one column. Here's a sample that works as expected:
function RemoveFilters() {
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.filter("Description", "", Telerik.Web.UI.GridFilterFunction.NoFilter);
}
However, when I try to add another column, the reset fails. This fails:
function RemoveFilters() {
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.filter(
"PartNumber", "", Telerik.Web.UI.GridFilterFunction.NoFilter);
masterTable.filter(
"Description", "", Telerik.Web.UI.GridFilterFunction.NoFilter);
}
Any idea how to fix this?
Ken
Microsoft MVP ASP.NET