For telerik Radgrid, we are getting default values for filtering columns. But I need to have different filtering options for different columns.
I am able to remove some of the options like this
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);
}
}
}
But the problem here is filter options are getting removed for all the columns. I need different filter options for different columns. Server side options is preferred. Thanks in advance
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Filtering/reduce-the-filter-menu-options
Direct from Telerik: This is not possible using server-side code. You must use the client-side example from the link above (pasted below):
Explanation from Telerik: