I have a jqGrid created when my page loads.
When I update or delete a row I use the methods setRowData or delRowData to update the grid withour reloading it.
Yet when I add a row, I cannot use addRowData because the sorting is wrong.
So I add the row in the database and then reload the grid.
But I want the new inserted row selected.
So I call setSelection, but the reloadGrid fires after the setSelection and so my row is not selected.
So I need to assign a callback to the loadComplete event, but my grid is already created when I want to assign the callback to the loadComplete event… is there a way to do this?