show upload dialog

4 posts, 1 answers
  1. Mohamadreza
    Mohamadreza avatar
    8 posts
    Member since:
    Jul 2013

    Posted 26 Jan 2014 Link to this post

    hi.
    how can i showing RadFileExplorer's upload dialog when root folder is empty on page load?
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 27 Jan 2014 Link to this post

    Hello,

    In order to be able to display Upload dialog you need to set RadFileExplorer's UploadPath property with the folders in which the users should be able to upload, thus if you want to allow users to upload to the root folder listed in the control both ViewPaths and UploadPaths should have same values.

    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
  4. Mohamadreza
    Mohamadreza avatar
    8 posts
    Member since:
    Jul 2013

    Posted 27 Jan 2014 in reply to Dobromir Link to this post

    thank you for reply. but i want to show dialog, pragmatically on form load.
  5. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 28 Jan 2014 Link to this post

    Hello,

    RadFileExplorer does not offer such functionality out-of-the-box but you can trigger click of the toolbar's button using the following approach:
    <telerik:RadFileExplorer ID="fileExpl" runat="server" OnClientLoad="explorerLoad"></telerik:RadFileExplorer>
    <script>
        function explorerLoad(explorer) {
            var toolbar = explorer.get_toolbar();
            uploadBtn = toolbar.findItemByValue("Upload");
            uploadBtn.click();
        }
    </script>

    I hope this helps.

    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.
Back to Top