Hello Friends,
I want to rename document name those bind in fileexplorer's Grid
I have use anchor tag to make document as link or hyper link you can see in below code
///////.cs code//////
string lnkbutton = string.Format("<a href='" + filetmp.FullName + "' title='" + filetmp.Name + "' target='_blank'>" + filetmp.Name + "</a>");
files.Add(new Telerik.Web.UI.Widgets.FileItem(lnkbutton, filetmp.Extension, filetmp.Length, filetmp.FullName, filetmp.FullName, filetmp.Name, Telerik.Web.UI.Widgets.PathPermissions.Delete | Telerik.Web.UI.Widgets.PathPermissions.Read | | Telerik.Web.UI.Widgets.PathPermissions.Upload));
///////Other attributes-that I have added in file/////////
files[i].Attributes.Add("DocumentCategory", bindDocList[0].DocumentCategory.ToString());
files[i].Attributes.Add("SequenceNumber", bindDocList[0].SequenceNumber.ToString());
you can see that I have use anchor tag "lnkbutton" in place of file name
/////issue/////
1)when I click on grid contextmenu rename link it show me full path of anchor tag in textbox I just want file name
if file name is "46 1.png" then it display "<a href=..\KCMSDocuments\PbkCaseDocs\047121212\46 1.png' title='46 1.png' target='_blank'>46 1.png</a>"
but I want "46 1.png"
2)whan I go to thumbnail view and mouse hour on any file or document it display complete anchor tag in but I want just file name
if I use file name in place of "lnkbutton" it will work but I want hyper link so I can click and download or open it
- I have attached image for more idea
I want to rename document name those bind in fileexplorer's Grid
I have use anchor tag to make document as link or hyper link you can see in below code
///////.cs code//////
string lnkbutton = string.Format("<a href='" + filetmp.FullName + "' title='" + filetmp.Name + "' target='_blank'>" + filetmp.Name + "</a>");
files.Add(new Telerik.Web.UI.Widgets.FileItem(lnkbutton, filetmp.Extension, filetmp.Length, filetmp.FullName, filetmp.FullName, filetmp.Name, Telerik.Web.UI.Widgets.PathPermissions.Delete | Telerik.Web.UI.Widgets.PathPermissions.Read | | Telerik.Web.UI.Widgets.PathPermissions.Upload));
///////Other attributes-that I have added in file/////////
files[i].Attributes.Add("DocumentCategory", bindDocList[0].DocumentCategory.ToString());
files[i].Attributes.Add("SequenceNumber", bindDocList[0].SequenceNumber.ToString());
you can see that I have use anchor tag "lnkbutton" in place of file name
/////issue/////
1)when I click on grid contextmenu rename link it show me full path of anchor tag in textbox I just want file name
if file name is "46 1.png" then it display "<a href=..\KCMSDocuments\PbkCaseDocs\047121212\46 1.png' title='46 1.png' target='_blank'>46 1.png</a>"
but I want "46 1.png"
2)whan I go to thumbnail view and mouse hour on any file or document it display complete anchor tag in but I want just file name
if I use file name in place of "lnkbutton" it will work but I want hyper link so I can click and download or open it
- I have attached image for more idea