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

show upload dialog

3 Answers 63 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Mohamadreza
Top achievements
Rank 1
Mohamadreza asked on 27 Jan 2014, 05:27 AM
hi.
how can i showing RadFileExplorer's upload dialog when root folder is empty on page load?

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 27 Jan 2014, 02:55 PM
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.
0
Mohamadreza
Top achievements
Rank 1
answered on 28 Jan 2014, 04:52 AM
thank you for reply. but i want to show dialog, pragmatically on form load.
0
Accepted
Dobromir
Telerik team
answered on 28 Jan 2014, 09:48 AM
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.
Tags
FileExplorer
Asked by
Mohamadreza
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Mohamadreza
Top achievements
Rank 1
Share this question
or