RadEditor Folder Selection

6 posts, 0 answers
  1. M A N I
    M A N I avatar
    3 posts
    Member since:
    Feb 2013

    Posted 20 Dec 2013 Link to this post

    Hi,

    Is it possible to insert a selected folder name into the RadEditor using DocumentManager. I can insert the documents fine but I also want to insert the selected folder in to the editor as well. I have customised the DocumentManager.ascx control to enable the folder selection but I could not find the way to enable the Insert button in that case. Insert button gets disabled when folder is selected. I have attached the screenshot of the document manager to demonstrate the idea. The reason I want the folder selection is that I am showing a database driven site map in the document manager using content providers, where each folder is actually acting as a site page and documents are files attached to that page.
  2. Ianko
    Admin
    Ianko avatar
    1940 posts

    Posted 21 Dec 2013 Link to this post

    Hi Ahsan,

    I regret to inform you that due to security and performance matters, uploading of folders is not available in the RadEditor control. Also there is no suitable approach for achieving this via the provided APIs.

    Regards,
    Ianko
    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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. M A N I
    M A N I avatar
    3 posts
    Member since:
    Feb 2013

    Posted 23 Dec 2013 Link to this post

    HI,

    To clear my point, I am not talking about uploading folders in RadEditor, I am talking about inserting a path to the folder when folder is selected in the DocumentManager dialog in RadEditor. When a document is selected in the DcoumentManager dialog the insert button is enabled so that user can insert a link to that document in RadEditor, but when the folder is selected then Insert button gets disabled. I could not find any way to keep that button enabled so that user can also insert path to the selected folder in RadEditor. Please see the image attached to my previous post. Thanks.
  4. Ianko
    Admin
    Ianko avatar
    1940 posts

    Posted 24 Dec 2013 Link to this post

    Hello Ahsan,

    As mentioned the manipulation of folders via the document manager is not possible by design. I can only try to make assumptions on the made customizations of the dialog.

    Nevertheless, the button is disabled by a simple HTML attribute named disabled and its value disabled, also the disabled state stylization is made via the rfdInputDisabled class name. I assume that you could further implement the logic, retrieve the button's element, remove the attribute and the mentioned class name. This will make the button clickable.

    You should note, that the widget, controlling the File Managers is not created to work with folders. This customization is not officially supported and any side effects from the built implementation should be handled by the developer of the application.

    Regards,
    Ianko
    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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. M A N I
    M A N I avatar
    3 posts
    Member since:
    Feb 2013

    Posted 25 Dec 2013 Link to this post

    HI, Thanks for your comments, I am able to enable the Insert folder path in Document Manager by modifying two user controls in EditorDialogs folder which are DocumentManager.ascx and FileBrowser.ascx and changing script in "Scripts/Dialogs/UserControlFileBrowser.js".
  6. Ianko
    Admin
    Ianko avatar
    1940 posts

    Posted 27 Dec 2013 Link to this post

    Hello Ahsan,

    I am glad that you have been able to achieve the desired customization.

    Regards,
    Ianko
    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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top