I have a nested radgrid, with a single detailtable. I have set it up with a RadContextMenu.
The problem is that I only want the RowContextMenu to be shown only in the mastertable - not the detailtable.
My initial thought was to differ on the tableview names:
function RowContextMenu(sender, args)
{
alert(args.get_tableView().get_name());
}
But I can't prevent the contextmenu from showing, by cancelling the firing event.
Suggestions?
The Telerik build is rather old: 2012.1.411.35
Regards,
Anders.
The problem is that I only want the RowContextMenu to be shown only in the mastertable - not the detailtable.
My initial thought was to differ on the tableview names:
function RowContextMenu(sender, args)
{
alert(args.get_tableView().get_name());
}
But I can't prevent the contextmenu from showing, by cancelling the firing event.
Suggestions?
The Telerik build is rather old: 2012.1.411.35
Regards,
Anders.
<telerik:RadGrid> <%--OMITTED--%> <ClientSettings> <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents> <Selecting AllowRowSelect="false" /> </ClientSettings> <%--OMITTED--%></telerik:RadGrid><telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnItemClick="RadContextMenu1_ItemClick"> <Targets> <telerik:ContextMenuControlTarget ControlID="RadGrid1" /> </Targets> <CollapseAnimation Duration="200" Type="OutQuint" /> <Items> <telerik:RadMenuItem runat="server" Text="Kopier"> </telerik:RadMenuItem> <telerik:RadMenuItem runat="server" Text="Slet" Enabled="False"> </telerik:RadMenuItem> </Items></telerik:RadContextMenu>