If you are picking up the ClientSideDoubleClickEvent, the call will return the incorrect data if you double click the very last row.
Your Grid has:-
.ClientSideDoubleClickEvent("DoubleClick")
Your view has:-
<script type="text/javascript">
function DoubleClick(sender, args)
{
alert(args.record.CURRENT_VALUE);
};
</script>
*** This fix, provided by tech support, is to put this function in your site.master file. ****
<script type="text/javascript">
$(function () {
Syncfusion.Mvc.Grid.SelectionEventArgs = function (selected, visibleColumns, colObj) {
this.row = selected.row;
this.colObj = colObj;
this.record = {};
this.hoverEventArgs = selected.hoverEventArgs;
if ($(this.row).find('form').length > 0) {
for (var i = 0; i < visibleColumns.length; i++) {
this.record[visibleColumns[i]] = $("#" + visibleColumns[i].Name).val();
}
}
else {
for (var i = 0; i < visibleColumns.length; i++) {
this.record[visibleColumns[i]] = $($(this.row).find('td.RowCell'))[i].innerHTML;
}
}
}
});
</script>
John
Are you using the latest version of the Grid 10.4.0.53 ? The issue has been fixed.
regards,
John
Hi Naveen,
Thank you for using Syncfusion products.
Query: Data is coming in wrong fashion
for record in the last row.
We have fixed this issue in our latest Essential
Studio Version “10.4.0.53”. We suggest you to upgrade your Essential Studio to
our latest Version. The latest version can be downloaded from the following
link.
https://www.syncfusion.com/downloads/latest-version
Please let us know if you have any other concerns so that we will
be happy to help you out.
Rakesh
D