Rename Document Title

2 posts, 0 answers
  1. Digant
    Digant avatar
    13 posts
    Member since:
    Dec 2013

    Posted 29 Jan 2014 Link to this post

    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
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 03 Feb 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top