Hello staale-eikebraaten,
It is very late reply. But other user can to know the fix for the issue.
you have done well. Only small changes have to do to work fine. Instead of passing the row id you can pass the uid. Using the “getrowdata” can get the uid. Below link search the “deleterow”. get clear idea.
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm
Regards
Balamurugan.S