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

Open Files in Explorer tab

3 Answers 192 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 30 Jun 2014, 07:39 PM
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>

3 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 02 Jul 2014, 11:45 AM
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.

 
0
Kevin
Top achievements
Rank 1
answered on 02 Jul 2014, 02:18 PM
Works awesome, thanks for the help, you guys rock.
0
Vessy
Telerik team
answered on 03 Jul 2014, 11:51 AM
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.

 
Tags
FileExplorer
Asked by
Kevin
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or