I am using the below code to delete but everytime I send the request it only sends the index not the actual id
// delete row.
$(“#deleterowbutton”).bind(‘click’, function () {
var selectedrowindex = $(“#jqxgrid”).jqxGrid(‘getselectedrowindex’);
var rowscount = $(“#jqxgrid”).jqxGrid(‘getdatainformation’).rowscount;
if (selectedrowindex >= 0 && selectedrowindex < rowscount) {
var id = $(“#jqxgrid”).jqxGrid(‘getrowid’, selectedrowindex);
alert(id);
$(“#jqxgrid”).jqxGrid(‘deleterow’, id);
}
});
I expect the alert (id) to show me customerid and not the selectedindex?? please help I am so stuck for the last two days