Hi ,
We have created a context event to delete the row of the grid . It works fine first time but after that it breaks .
Below is the code .
// deleteGridRow will delete the row from grid and corresponding viewModel
deleteGridRow :function(view, gridId, viewModel){
view.isDirty = true;
var currentGrid = view.$rootDiv.find(gridId);
var rowIndex = currentGrid.jqxGrid(‘getselectedrowindex’);
var rowdetails = currentGrid.jqxGrid(‘getrowdata’, rowIndex);
viewModel.deleteRow( rowdetails.rowUniqueId);
var rowid = currentGrid.jqxGrid(‘getrowid’, rowIndex);
currentGrid.jqxGrid(‘deleterow’, rowid);
},
In the above code , row Index become null , unexpectedly when we attempt to delete a row second time .It is not able to pick the row Index .