This is a migrated thread and some comments may be shown as answers.

Rename Document Title

1 Answer 82 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Digant
Top achievements
Rank 1
Digant asked on 29 Jan 2014, 11:03 AM
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

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 03 Feb 2014, 01:13 PM
Hello,

The content displayed in the Rename dialog is the name of the FileItem listed in the RadFileExplorer and it is not possible to modify it.

Could you please provide more detailed information why do you need to modify the Name property in such manner? If you want to implement some sort of 'download' functionality please take a look at the following live demo:
FileExplorer - Filter files and download

Regards,
Dobromir
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
FileExplorer
Asked by
Digant
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or