When using FileExplorer control, I would like to force a download of any files double clicked on, regardless of the type. I believe the following code (which I took from the sample code) should do the trick:
<script type="text/javascript">
//<![CDATA[
function OnClientFileOpen(oExplorer, args) {
var item = args.get_item();
args.set_cancel(
true);
var requestImage = "Handler.ashx?path=" + item.get_url();
document.location = requestImage;
}
//]]>
</script>
<telerik:RadFileExplorer ID="fileExplorer" runat="server" Width="700px" OnClientFileOpen="OnClientFileOpen" EnableOpenFile="true" TreePaneWidth="250px">
<Configuration SearchPatterns="*.*" MaxUploadFileSize="20480000"></Configuration>
</telerik:RadFileExplorer>.
However, I get the error message that Handler.ashx doesn't exists.