I like to propose a improvement for the grid filter menu.
The GridKnownFunction enumeration lists the possible filter functions
Example:
// Summary:
// Same as: dataField LIKE 'value/%'
StartsWith = 3,
But why are these GridKnownFunction enumeration NOT used in the GridFilterMenu items.
Example:
The GridKnownFunction enumeration lists the possible filter functions
Example:
// Summary:
// Same as: dataField LIKE 'value/%'
StartsWith = 3,
But why are these GridKnownFunction enumeration NOT used in the GridFilterMenu items.
Example:
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); } } } I do not like to use these string values in code (because when telerik decide to change them, i must adapt my code and i don't like that kind of work) Therefore Telerik please at lease create const string for it. Example GridFilterMenuNoFilter = "NoFilter";