I created corrected testcase and included also multiselect: true. This causes the issue. How to start edit using enter and allow multiple row selection also ?
<html xmlns="http://www.w3.org/1999/xhtml
</script>
</script>
</script>
$.jgrid.no_legacy_api = true;
$.jgrid.useJSON = true;
</script>
$(function () {
var mydata = [
{ id: “1”, invdate: “2007-10-01”, name: “test”, note: “note”, amount: “200.00”, tax: “10.00”, closed: true, ship_via: “TN”, total: “210.00” },
{ id: “2”, invdate: “2007-10-02”, name: “test2”, note: “note2”, amount: “300.00”, tax: “20.00”, closed: false, ship_via: “FE”, total: “320.00” },
{ id: “3”, invdate: “2007-09-01”, name: “test3”, note: “note3”, amount: “400.00”, tax: “30.00”, closed: false, ship_via: “FE”, total: “430.00” },
{ id: “4”, invdate: “2007-10-04”, name: “test4”, note: “note4”, amount: “200.00”, tax: “10.00”, closed: true, ship_via: “TN”, total: “210.00” },
{ id: “5”, invdate: “2007-10-31”, name: “test5”, note: “note5”, amount: “300.00”, tax: “20.00”, closed: false, ship_via: “FE”, total: “320.00” },
{ id: “12”, invdate: “2007-09-10”, name: “test12”, note: “note12”, amount: “500.00”, tax: “30.00”, closed: false, ship_via: “FE”, total: “530.00” }
];
var grid = $(“#grid”);
grid.jqGrid({
datatype: 'local',
data: mydata,
colModel: [
{ name: 'invdate', editable: true, width: 30 },
{ name: 'name', editable: true, width: 271 }
],
gridview: true,
pager: '#pager',
viewrecords: true,
multiselect: true,
editurl: 'clientArray'
});
});
$(“#grid”).jqGrid('bindKeys', {
onEnter: function (rowid) {
alert(“You enter a row with id: ” + rowid);
}
});