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.

Sample required for ClientSideDoubleClickEvent

Thread ID:

Created:

Updated:

Platform:

Replies:

105314 Sep 28,2012 08:43 AM Nov 28,2012 08:00 AM ASP.NET MVC (Classic) 5
loading
Tags: Grid
John Hind
Asked On September 28, 2012 08:43 AM

VS2012, VB.Net, ASPX
 
Can you please provide an example of a double click event calling through to my controller ? I have included .ClientSideDoubleClickEvent("DoubleClick") in my grid and then a Javascript function:-
 
function DoubleClick(sender, args) 
{
      what now ????
}
 
thanks,
John

Ranjithkumar R G [Syncfusion]
Replied On October 3, 2012 03:15 AM

Hi John ,

 

Thanks for using Syncfusion products.

 

Your requirement of calling double click client side event through to controller can be achieved by handling Ajax post to the controller. Please refer to the code snippet below to achieve this.

 

[Script]

 

function doubleclick(sender, args) {

 

        var param = {};

        param["Value1"] = "value";

 

        $.ajax({

            type: 'POST',

            url: 'Home/Save',

            data: param,

            datatype: 'html',

            success: function (data) {

                $('#OrderGrid')[0].innerHTML = data;

                $.fn.sfEvalScripts(data);

            }

        });

 

 

    }

 

Please refer to the below link to download the sample application.

 

MvcApplication2.zip

 

Please let us know if you have any concern.

 

Regards,

Ranjithkumar.


Administrator [Syncfusion]
Replied On November 23, 2012 07:59 AM

Hi,

We are also using Syncfusion MVC controls now,
But, the sample you mentioned above is not working on double click.
It is giving an error as mentioned below.

The view 'Save' or its master was not found or no view engine supports the searched locations. The following locations were searched:<br>~/Views/Home/Save.aspx<br>~/Views/Home/Save.ascx<br>~/Views/Shared/Save.aspx<br>~/Views/Shared/Save.ascx<br>~/Views/Home/Save.cshtml<br>~/Views/Home/Save.vbhtml<br>~/Views/Shared/Save.cshtml<br>~/Views/Shared/Save.vbhtml

John Hind
Replied On November 23, 2012 12:09 PM

What is the name of the Controller and the View that you are trying to call ? It seems that the view does not exist or you have specified the wrong view in the line:

url: 'Home/Save',        (Controller/View)

regards,

John


Administrator [Syncfusion]
Replied On November 24, 2012 07:47 AM

Hi Jhon,

I am using the sample provided as part of the reply from Ranjithkumar R G(Syncfusion).
But, that sample is not working on double clicking any row in the grid.

Please share the updated sample, through which we can refresh grid data automatically.

Regards,
Naveen

Ranjithkumar R G [Syncfusion]
Replied On November 28, 2012 08:00 AM

Hi Naveen,

 

We are sorry for inconvenience caused. We are unable to reproduce the issue. We have prepared a sample same can be downloaded from the following links. 

Sample link: MvcApplication2.zip 

Could you please try the above sample and get back to us whether you are able to reproduce the issue? If not, could you please give more information or by reproducing the issue in the above sample so that we could sort out the issue and provide you with solution. The information provided would be of great help in resolving the issue.

 

Please let us know if you have any concerns.

 

Regards,

Ranjithkumar


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.

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.

;