I don't want to display the column selection option in context menu.
I am able to do that within HeaderContextMenu_PreRender
But when I click on the menu I get this error in dynamic javascript.
code line: var h=m.findItemByValue("ColumnsContainer").get_items();
Error: Microsoft JScript runtime error: 'findItemByValue(...)' is null or not an object
Any suggestions?
thanks
I am able to do that within HeaderContextMenu_PreRender
private void HeaderContextMenu_PreRender(object sender, EventArgs e){ GridHeaderContextMenu menu = sender as GridHeaderContextMenu; foreach (RadMenuItem item in menu.Items) if (item.Text == "Columns") { item.Visible = false; }}But when I click on the menu I get this error in dynamic javascript.
code line: var h=m.findItemByValue("ColumnsContainer").get_items();
Error: Microsoft JScript runtime error: 'findItemByValue(...)' is null or not an object
Any suggestions?
thanks