hi I have a databound RadGrid, I'd like to allow different options items for different types of columns. e.g. for string columns i only want to have "NoFilter" and "Contains" options, for number columns I only want to have "NoFilter", "GreaterThan" and "LessThan" options. I tried to apply the method (see below) under radgrid1_Init() and radgrid1_databound(), no luck with either way. please hlep
foreach (GridColumn gc in radgrid1.MasterTableView.RenderColumns)
{
if (gc.DataType.ToString() == "string")
{
GridFilterMenu menu = rgQualificationList.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 == "StartsWith")
{
i++;
}
else
{
menu.Items.RemoveAt(i);
}
}
}
if (gc.DataType.ToString() == "DateTime")
{
................
............