I am writing some piece of code inside onCellSelect, which executes fine
onCellSelect: function (rowid, iCol, cellcontent) {
if (iCol > 0) {
$("#gridMain_d").jqGrid("resetSelection");
$("#gridMain_d").setSelection(rowid, true);
}
}
But the problem is because of this code beforeSaveCell event is not firing. I know this because as soon as I remove this code beforeSaveCell starts working. i have tried using return statement but nothing works.
UPDATE
I commented the code written above and added this code
beforeSelectRow: function (rowid, e) {
var $self = $(this), iCol, cm,
$td = $(e.target).closest("tr.jqgrow>td"),
$tr = $td.closest("tr.jqgrow"),
p = $self.jqGrid("getGridParam");
if ($(e.target).is("input[type=checkbox]") && $td.length > 0) {
$self.jqGrid("setSelection", $tr.attr("id"), true, e);
}
else {
$self.jqGrid('resetSelection');
$self.jqGrid("setSelection", $tr.attr("id"), true, e);
}
return true;
},
But still beforeSaveCell event is not firing.
UPDATE 2
This jsFiddle replicates the issue. http://jsfiddle.net/eranjali08/CzVVK/1175/