I was referring to the following article to add a custom RadMenuItem to the GridContextMenu of the FileExplorer.
The problem is I can't seem to get a reference to the current item. I'd like to get its path.
I tried using RadMenuItem.DataItem but it returns null. I then read that it is only usable on DataBinding/Bound events.
Can someone point me in the right direction please?
Here's the code: (please note that "ucFileExplorer" is the reference to the RadFileExplorer user control that is currently on the page)
protected void Page_Load(object sender, EventArgs e)
RadMenuItem menuAlertMe = new RadMenuItem("Alert Me");
menuAlertMe.Value = "AlertMe";
ucFileExplorer.GridContextMenu.ItemClick += new RadMenuEventHandler(GridContextMenu_ItemClick);
private void GridContextMenu_ItemClick(object sender, RadMenuEventArgs e)
RadMenuItem menuItem = e.Item as RadMenuItem;
if (menuItem.Value == "AlertMe")
// I want to get a hold of the current item of the Grid so I can process it...