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

RadFileExplore - title

1 Answer 48 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Amanda
Top achievements
Rank 1
Amanda asked on 11 Jul 2011, 07:18 PM
When we click on a file - a new window opens up.  How do we set the title on that page?

Thank you very much.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Jul 2011, 01:56 PM
Hi Amanda,

You can use the OnClientFileOpen event and the code below to change the title of the opened dialog:

<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="450" EnableCopy="true"
    OnClientFileOpen="OnClientFileOpen">
    <Configuration ViewPaths="~/Images" />
</telerik:RadFileExplorer>
<script type="text/javascript">
    function OnClientFileOpen(sender, args) {
        var showHandler = function (oWnd) {
            oWnd.set_title("My Title");
        }
        var wndManager = sender.get_windowManager();
        wndManager.add_show(showHandler);
 
    }
</script>


Regards,
Rumen
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Upload (Obsolete)
Asked by
Amanda
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or