Hi,
I'm trying to add a custom filter to grid using js, like this:
tableView.get_filterExpressions().clear();
tableView.get_filterExpressions().add("ContributionID='" + $get('cContributionID').value + "'");
And this works great. However; if we then filter using the gridcolumn it breaks on:
Telerik.Web.UI.GridFilterExpressions.prototype={find:function(_3e8){
for(var i=0,_3ea=this.get_count();i<_3ea;i++){
var item=this.getItem(i);
if(item.get_columnUniqueName()==_3e8){
return item;
}
Because item is just the filterstring.
I've read http://www.telerik.com/help/aspnet-ajax/grid_filter.html , but that requires that the filtered field is in the grid.
Please advice.
I'm trying to add a custom filter to grid using js, like this:
tableView.get_filterExpressions().clear();
tableView.get_filterExpressions().add("ContributionID='" + $get('cContributionID').value + "'");
And this works great. However; if we then filter using the gridcolumn it breaks on:
Telerik.Web.UI.GridFilterExpressions.prototype={find:function(_3e8){
for(var i=0,_3ea=this.get_count();i<_3ea;i++){
var item=this.getItem(i);
if(item.get_columnUniqueName()==_3e8){
return item;
}
Because item is just the filterstring.
I've read http://www.telerik.com/help/aspnet-ajax/grid_filter.html , but that requires that the filtered field is in the grid.
Please advice.