Hi David,
Thanks for using Syncfusion Products.
You can achieve your requirement by using "beforeOpen" event of file explorer control. Using this event, we can prevent to open the window model that is opened when double click on grid / tile view files. Please refer below code snippet.
Code snippet [CSHTML]:
@Html.EJ().FileExplorer("fileExplorer").Path("~/FileExplorerContent/").AjaxAction(@Url.Content("/FileExplorer/FileActionDefault")).ClientSideEvents(evt => evt.BeforeOpen("onBeforeOpen"))
|
Code snippet [JS]:
function onBeforeOpen(args) {
//used to prevent the preview option, while double click on files
if (args.itemType == "File")
args.cancel = true;
}
|
We have prepared a sample based on this and you can find the sample under the following location:
Sample: http://www.syncfusion.com/downloads/support/forum/120078/ze/ImagePreview899806079
please let us know if this helps.
Regards,
Balamurugan