Open Files in Explorer tab

4 posts, 1 answers
  1. Kevin
    Kevin avatar
    265 posts
    Member since:
    Jun 2011

    Posted 30 Jun 2014 Link to this post

    I have a fileExplorer that open files but what it does is open the files in a radwindow.  Current the fileExplorer is in a Radwindow itself.  Is there a way to force it to open the files in another IE tab.

    <tr>
                       <td><telerik:RadFileExplorer ID="radExplorer" runat="server" Width="400px" Height="200px" EnableOpenFile="true" DisplayUpFolderItem="false"
                           EnableCreateNewFolder="false" AvailableFileListControls="Grid" ExplorerMode="Default">
                               <Configuration ViewPaths="~/PriorSvcUploads" />
                           </telerik:RadFileExplorer>
                       </td>
                   </tr>

  2. Answer
    Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 02 Jul 2014 Link to this post

    Hello Kevin,

    A possible way to implement the described functionality is to attach a handler to the FileExplorer's ClientFileOpen event where you can access the selected item url and to cancel the opening of the RadWindow. For example:
    <telerik:RadFileExplorer runat="server" ID="radFileExplorer" OnClientFileOpen="OnClientFileOpen">
        <Configuration ViewPaths="~/Images" />
    </telerik:RadFileExplorer>
    <script>
        function OnClientFileOpen(fileExplorer, args) {
            var item = args.get_item();
            window.open(item.get_url(), "_blank");
            args.set_cancel(true)
        }
    </script>

    I hope this approach will be applicable for your scenario.

    Regards,
    Vessy
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    265 posts
    Member since:
    Jun 2011

    Posted 02 Jul 2014 in reply to Vessy Link to this post

    Works awesome, thanks for the help, you guys rock.
  5. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 03 Jul 2014 Link to this post

    Hello Kevin,

    I am glad the proposed solution was helpful for you. Feel free to contact us in case any further issues occur.

    Regards,
    Vessy
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top