We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Remove modal window (dlbclick row)

Hi,

i want to remove window modal than show preview image when doble click user  on grid row...¿any idea?

thanks!

3 Replies

BP Balamurugan P Syncfusion Team August 31, 2015 09:23 AM UTC

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




DA David August 31, 2015 09:28 AM UTC

oh!!! Work 100%.

I don't know was so easy. Sorry.

Thanks!


HP Harikrishnan P Syncfusion Team September 2, 2015 03:53 AM UTC

Hi David,
 
Thanks for your update. Please get back to us if you need further assistance.
 
Regards,
HariKrishnan

Loader.
Live Chat Icon For mobile
Up arrow icon