How to disable contextmenu except in the grid of telerik FileExplorer? -
By default I tried to disable unnecessary context menus while setting the grid with context menus, if you want to clear the grid If you click on the part, it disables the Delete menu
However, after adding customized menu like download, it shows in the context menu, there are also no selected items (i.e., How do I download it?). So I want to disable the unnecessary menu or leave the grid line context menu and make it invisible.
I am using the teleic ASP.NET AgentContral 2009 Q2.
Thank you.
This piece of code should help - Basically what you need to do is attach a handler to the menu Show the event, check the target element (the element where you right click) and if it is a grid area - disable the menu item.
& lt; Script type = "text / javascript" & gt; Function OnClientLoad (Explorer) {explorer.get_gridContextMenu () Add_showing (disableItem); } Function disableItem (Sender, Args) {var target = args.get_targetElement (); If (target & target = classname == "rgditev") {var dlItem = sender.find itemview ("download"); DlItem.set_enabled (false); }} & Lt; / Script & gt; & Lt; Telerik: Redfile Explorer Runat = "Server" id = "Redfile Explorer 1" on Client Load = "Load On Client" & gt; & Lt; / Taylor: Redfile Explorer & gt;
Comments
Post a Comment