If I understand the scenario correctly, you want to add dynamically folders to the FileExplorer's UploadPaths
. You should note that the latest moment of the page live cycle where the RadFileExplorer's properties ViewPaths / DeletePaths / UploadPaths can be set is the Page_Load event, and Button_Click event occurs after that. Nevertheless, your scenario can be implemented using the following approach approach:
- You need to check which control causes Postback
- Then, change the paths based on the clicked button. Please note that you need to clear the old nodes in order to force the RadFileExplorer to repopulate its content.
For your convenience I have attache a sample project implementing the above mentioned approach, including a RadComboBox in the ToolBar of FileExplorer.
the Telerik team
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 their blog feed