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

Sample required for ClientSideDoubleClickEvent

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

5 Replies

RR Ranjithkumar R G Syncfusion Team October 3, 2012 07:15 AM UTC

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.



AD Administrator Syncfusion Team November 23, 2012 12:59 PM UTC

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


JH John Hind November 23, 2012 05:09 PM UTC

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



AD Administrator Syncfusion Team November 24, 2012 12:47 PM UTC

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


RR Ranjithkumar R G Syncfusion Team November 28, 2012 01:00 PM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon