Hello all,
I have many pages and in all am using RagGrid and contextmenu
is there any way to use the same contextmenu or to inherit from ?
i need to use my code in all pages
any help will be appreciated
I have many pages and in all am using RagGrid and contextmenu
is there any way to use the same contextmenu or to inherit from ?
i need to use my code in all pages
protected
override
void
OnPreRenderComplete(EventArgs e)
{
base
.OnPreRenderComplete(e);
RadMenuItem item = RadGrid1.HeaderContextMenu.FindItemByValue(
"GroupBy"
);
RadGrid1.HeaderContextMenu.Items.RemoveAt(0);
RadGrid1.HeaderContextMenu.Items.Remove(item);
item = RadGrid1.HeaderContextMenu.FindItemByValue(
"UnGroupBy"
);
RadGrid1.HeaderContextMenu.Items.Remove(item);
}