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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove modal window (dlbclick row)

Thread ID:

Created:

Updated:

Platform:

Replies:

120078 Aug 28,2015 08:43 AM UTC Sep 2,2015 03:53 AM UTC ASP.NET MVC 3
loading
Tags: FileExplorer
David
Asked On August 28, 2015 08:43 AM UTC

Hi,

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

thanks!

Balamurugan P [Syncfusion]
Replied On 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



David
Replied On August 31, 2015 09:28 AM UTC

oh!!! Work 100%.

I don't know was so easy. Sorry.

Thanks!

Harikrishnan P [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;