Hi,
I'd like to show only Group and Ungroup options on the headercontext menu of a RadGrid so i've done in this way
If i leave the "element "Columns visible" it works fine, but if i put
Microsoft JScript runtime error: 'findItemByValue(...)' is null or not an object
What is the problem of hiding the item "Columns" of the context mennu ?
Thank You !!
I'd like to show only Group and Ungroup options on the headercontext menu of a RadGrid so i've done in this way
void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
{
switch (e.Item.Text)
{
case "Columns": e.Item.Visible = false;break;
case "Sort Ascending": e.Item.Visible = false; break;
case "Sort Descending": e.Item.Visible = false; break;
case "Clear Descending": e.Item.Visible = false; break;
case "Clear Sorting": e.Item.Visible = false; break;
}
}
case "Columns": e.Item.Visible = false;break;
i get this error: Microsoft JScript runtime error: 'findItemByValue(...)' is null or not an object
What is the problem of hiding the item "Columns" of the context mennu ?
Thank You !!