I’ve configured the grouping feature in the grid options :
grouping: true,
groupingView: {
groupField: [‘myGroupField’],
groupColumnShow: [false],
groupOrder: [‘asc’]
}
When the grid is displayed after loading data from server, everything is fine.
Now I want add a new row in the grid as the last row (using addRowData method). This new row has a myGroupField value that is not used in the other rows. I would expect jqgrid to show the new group row. But the new row is just inserted at the end of the last existing group and no new group row is inserted.
So I tried to force jqgrid to refresh the grouping by calling jQuery(“#gridid”).jqGrid(‘groupingGroupBy’,”myGroupField”); When I do that, my inserted row is removed from the grid.
Any idea ?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top