Show files in separate window rather than IFrame

2 posts, 0 answers
  1. Ryan Dailey
    Ryan Dailey avatar
    22 posts
    Member since:
    Mar 2010

    Posted 14 Jun 2010 Link to this post

    Is there a way to make files inside the FileExplorer show up in a separate browser window, rather than inside the Iframe window?
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 15 Jun 2010 Link to this post

    Hi Ryan,

    It is possible to modify the default behavior of the OpenFile functionality by assigning a handler to the OnClientFileOpen client-side event and cancel the default execution using set_cancel(true) method.

    You can achieve the required functionality using the following code:
    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" EnableOpenFile="true" OnClientFileOpen="OnClientFileOpen">
        <Configuration ViewPaths="~/" DeletePaths="~/" UploadPaths="~/" />
    <script type="text/javascript">
        function OnClientFileOpen(sender, args)
            //check the type of the selected item
            if (!args.get_item().isDirectory())
                var href =;
                //open the item in new window to avoid losing current content
      "http://" + href + args.get_item().get_url());

    I hope this helps.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top