
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?
how can i showing RadFileExplorer's upload dialog when root folder is empty on page load?
3 Answers, 1 is accepted
0
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
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
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:
I hope this helps.
Regards,
Dobromir
Telerik
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.