- Home
- Forum
- ASP.NET MVC (Classic)
- Sample required for ClientSideDoubleClickEvent
Sample required for ClientSideDoubleClickEvent
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.
Please let us know if you have any concern.
Regards,
Ranjithkumar.
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
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
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
- 5 Replies
- 3 Participants
-
JH John Hind
- Sep 28, 2012 12:43 PM UTC
- Nov 28, 2012 01:00 PM UTC