RadFileExplore - title

Thread is closed for posting
2 posts, 0 answers
  1. Amanda
    Amanda avatar
    65 posts
    Member since:
    Sep 2010

    Posted 11 Jul 2011 Link to this post

    When we click on a file - a new window opens up.  How do we set the title on that page?

    Thank you very much.
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 13 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top