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

Setting RadFileManager RadWindowManager

1 Answer 50 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 09 Feb 2011, 11:55 AM
Hi,

I need to get the RadFileManager to use a different RadWindowManager to the one it uses as its default. Is this possible? The RadWindowManager property is read only but I need to set it to use an existing RadWindowManager that already resides on the page.

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 14 Feb 2011, 10:14 AM
Hi Charles,

You can configure RadFileExplorer to use a different RadWindowManager using its set_windowManager() client-side method, e.g.:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Width="200px" Height="600px">
</telerik:RadWindowManager>
 
 
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" OnClientLoad="OnClientLoad">
    <Configuration ViewPaths="~/ROOT" UploadPaths="~/ROOT" DeletePaths="~/ROOT"  />
</telerik:RadFileExplorer>
 
<script type="text/javascript">
    function OnClientLoad(explorer, args)
    {
        var windowManager = $find("<%= RadWindowManager1.ClientID %>"); //get reference to the external window manager
        explorer.set_windowManager(windowManager); //set the external RadWindowManager to RadFileExplorer
    }
</script>


Regards,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
FileExplorer
Asked by
Charles
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or