Hi Telerik guys !
I have two ROOTS within my RADFILE EXPLORER.
For example :-
+ ----- FTP
+ ----- ROOT
Iam getting the DELETE option for FTP(I can delete the folder/file within the FTP)
What Iam here is loking for is NOT TO SHOW the DELETE option for ROOT.
Below is the code Iam have written for this :--
As from the above code :-
viewPaths ----> is for Both the FTP & Root
While, deletePaths -----> is for FTP only.
But when I run my application Iam not able to see the DELETE option removed from my ROOT option.
I dont know why is this so ??
Below is the SCREEN SHOT for this .
Please help ?
Ajay
I have two ROOTS within my RADFILE EXPLORER.
For example :-
+ ----- FTP
+ ----- ROOT
Iam getting the DELETE option for FTP(I can delete the folder/file within the FTP)
What Iam here is loking for is NOT TO SHOW the DELETE option for ROOT.
Below is the code Iam have written for this :--
protected void Page_Load(object sender, EventArgs e) |
{ |
try |
{ |
MessageLabel.Text = ""; |
SuccessImage.Visible = false; |
if (Session["UserID"] == null) |
{ |
Session.Clear(); |
Response.Redirect("~/ExpiredMessage.aspx"); |
} |
RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "PopForReport", "function newWindow(url) { var popupWindow = window.open(url,'popUpWindow','height=700,width=600,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no, location=no,directories=no, status=yes'); return false; }", true); |
RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "ErrorHandler", "function handlerFunction(description,page,line) {return true;} window.onerror = handlerFunction;", true); |
RadScriptManager.RegisterClientScriptInclude(Page, Page.GetType(),"pasword_encrypt", "script/encode.js"); |
} |
catch (Exception ex) |
{ |
//throw new Exception(ex.Message.ToString()); |
StackTrace stackError = new StackTrace(new StackFrame(true)); |
BLLError.SetErrorProperties(ex.Message, stackError, short.Parse(Session["UserID"].ToString())); |
} |
GetMappedPath GMP = new GetMappedPath(); |
Dictionary<string, string> mappedPathsInConfigFile = GMP.GetMappingsFromConfigFile(); |
//string DocumentPath = ""; |
string[] DocumentPath = new string[2]; |
int index = 0; |
foreach (KeyValuePair<string, string> mappedPath in mappedPathsInConfigFile) |
{ |
DocumentPath[index] = mappedPath.Value.Replace("/", "\\"); |
index += 1; |
} |
string[] viewPaths = new string[] { DocumentPath[1], DocumentPath[0]}; |
//string[] uploadPaths = new string[] { DocumentPath[1], DocumentPath[0]}; |
string[] deletePaths = new string[] { DocumentPath[1] }; |
FTPManagementRadFileExplorer.Configuration.ContentProviderTypeName = typeof(FTPCustomFileSystemProvider).AssemblyQualifiedName; |
FTPManagementRadFileExplorer.Configuration.ViewPaths = viewPaths; |
FTPManagementRadFileExplorer.Configuration.DeletePaths = deletePaths; |
} |
As from the above code :-
viewPaths ----> is for Both the FTP & Root
While, deletePaths -----> is for FTP only.
But when I run my application Iam not able to see the DELETE option removed from my ROOT option.
I dont know why is this so ??
Below is the SCREEN SHOT for this .
Please help ?
Ajay