I have a permission system that I’m using for my RadFileExplorer and Hiding various menu items and buttons. The problem is the options appear to be loading in some cases after the RadFileExplorer’s ExplorerPopulated, ItemCommand, and Prerender.
I am doing something like the following to remove the item:
if (((RadFileExplorer)(sender)).GridContextMenu.Items.Any(d => d.Value == "Rename"))
{
((RadFileExplorer)(sender)).GridContextMenu.Items.Remove(((RadFileExplorer)(sender)).GridContextMenu.Items.First(d => d.Value == "Rename"));
}
Similar code is working for the File Grid, but I can’t seem to get server code to apply to the FileTree, can I attach this code to the prerender the FileTree? Or does this disappear? DO I have to do this on the client side?
I’ve tried attaching to the PreRender of the FileTree and the FileTree’s Context Menu’s prerender, But I’m guessing that stuff gets overridden. At what point should I try to reattach these PreRender Overrides?
Or better yet is there an easier way of removing the FileTree’s Context menu’s specific items?