I have a grid with editable nested grids, which I need to add rows to.
My best solution was to assign the nested grid a unique id (according to the id you connect them to) in the initrowdetail function:
var id = record.uid.toString();
var grid = $($(parentElement).children()[0]);
$(grid).attr(‘id’, ‘somename_’ + id);
Then if you work with the id anywhere else on this page, you can access it via:
var data = $(‘#somename_’ + id).jqxGrid(‘getrows’);
And if you somehow want to access all nested grids, assign it a css class for later selection.
$(grid).addClass(‘nestedgrid’);
$(‘.nestedgrid’).jqxGrid(‘…’)