Hello there,
i am trying to add a second level to my row groups and cant get it to work. i did the same with columns without problems but rows are different.
Similiar to the ColumnExample i am trying to do the following:
RowGroupModel rowGroupModel = new RowGroupModel();
rowGroupModel.setDataProvider(bodyDataProvider);
RowGroupModel secondRowGroupModel = new RowGroupModel();
secondRowGroupModel.setDataProvider(bodyDataProvider);
RowGroupExpandCollapseLayer rowExpandCollapseLayer = new RowGroupExpandCollapseLayer(columnExpandCollapseLayer, rowGroupModel, secondRowGroupModel);
The last row is not valid because the RowGroupExpandCollapseLayer only accepts one rowgroupmodel. The ColumnGroups behavior is different as seen in this working example:
ColumnGroupModel columnGroupModel = new ColumnGroupModel();
ColumnGroupModel sndColumnGroupModel = new ColumnGroupModel();
ColumnGroupExpandCollapseLayer columnExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(columnHideShowLayer, columnGroupModel, sndColumnGroupModel);
So, how can i solve this problem? And why do i need to set a DataProvider for RowGroupModels and not for Columns?
Thanks for your help.