I have set on a form the property rowGroupIndex for 2 columns (0/1). In Developer (2024.3.7), it behaves like expected. I also can manually add/ remove other columns to/from the row group panel. The situation is shown in the attached screenshot.
Unfortunately, it does not work when the solution is deployed. The 2 grouped columns appear shortly in the row group panel, then they disappear. I also can’t manually add/remove them or other columns.
Looks like a bug. Has someone else grouping forms in use?
works in the Developer Version: 2024.3.7.3950_LTS, but does not work if I deploy it. The result is that the table data is shown as a usual table (non grouped), where the row group panel is empty instead of having the 2 grouping buttons. Manually it’s not possible to put a column into the row group panel, it just does not stick there.
if (firstShow) {
const f = function(params) {
/** @type {Array<String>} */
const route = params.rowNode.getRoute();
if (!route) {
return false;
}
// Open first level of grouping.
return route.length == 1; // For more levels of grouping: return route.length >= 1 && route.length <= 2;
};
// Add isServerSideGroupOpenByDefault property to existing design time grid options.
elements.gridClassMembers.gridOptions = Object.assign (
{},
elements.gridClassMembers.gridOptions || {}, {
isServerSideGroupOpenByDefault: clientutils.generateBrowserFunction(String(f)),
rowGroupPanelShow: 'always',
suppressGroupRowsSticky: false,
autoGroupColumnDef: {
minWidth: 100,
maxWidth: 150
}
}
);
}
Any idea how to make it work is of course welcome.