Hello,
We have trying to use this example to limit the number of filter items. It does filter the items and data correctly. The problem is the filter item highlighted is not the one that was used to do the filter. For Example, I would filter on StartWith and none of the options are selected after the postback. Any help would be great.
We have trying to use this example to limit the number of filter items. It does filter the items and data correctly. The problem is the filter item highlighted is not the one that was used to do the filter. For Example, I would filter on StartWith and none of the options are selected after the postback. Any help would be great.
protected void RadGrid1_Init(object sender, System.EventArgs e) |
{ |
GridFilterMenu menu = RadGrid1.FilterMenu; |
int i = 0; |
while(i < menu.Items.Count) |
{ |
if(menu.Items[i].Text == "NoFilter" || |
menu.Items[i].Text == "Contains" || |
menu.Items[i].Text == "EqualTo" || |
menu.Items[i].Text == "GreaterThan" || |
menu.Items[i].Text == "LessThan") |
{ |
i++; |
} |
else |
{ |
menu.Items.RemoveAt(i); |
} |
} |
} |