I need to disable a certain context menu item (upload) and disable the upload button from the toolbar.
I found this code to disable the toolbar upload function (and it works)
Is there similar code to disable the context menu item (upload) in the code behind? I want to control this based on user login as I will use an IF statement to check the login name.
Thanks,
Joe
I found this code to disable the toolbar upload function (and it works)
Dim toolBar As RadToolBar = RadFileExplorer1.ToolBar ' Remove commands from the ToolBar control; Dim i As Integer = 0 While i < toolBar.Items.Count If toolBar.Items(i).Value = "Delete" Then toolBar.Items.RemoveAt(i) ' Next item Continue While ElseIf toolBar.Items(i).Value = "Upload" Then toolBar.Items.RemoveAt(i) ' Next item Continue While End If ' Next item i += 1 End WhileIs there similar code to disable the context menu item (upload) in the code behind? I want to control this based on user login as I will use an IF statement to check the login name.
Thanks,
Joe