Hello,
I'm trying to customize the filter menu of my RadGrid based on the column. The server-side demo only shows how to change the filter menu for every column, not by column. Is there any way to this with the current API? Here is the code I’ve being working with to implement this functionality. This code removes "Contains" from all the filtermenus. I would like to do this for a specific column.
protected void RadGrid1_Init(object sender, System.EventArgs e)
{
foreach(GridColumn column in RadGrid1.Columns)
{
if (column.HeaderText == "ColumnName")
{
GridFilterMenu menu = RadGrid1.FilterMenu;
menu.Items.RemoveAt(menu.Items.FindItemByText("Contains").Index);
}
}
}
Thanks in advance.