Row Grouping
The Grid can group rows with equivalent cell values under shared parent rows.
If you want to make column available for grouping, you need to set the enableRowGroup parameter to true on ColDef,
otherwise grouping attempt on this column will result to runtime exception.
ColDef priceColumn = ColDef.builder()
.field("price")
.enableRowGroup(true)
.build();
Loading grid...
Providing Child Counts
To enable child counts, you need to set getChildCount on query builder to true,
and also provide name of the field where child count will be returned (this is the same field you will use in getChildCount callback in client).
this.queryBuilder = QueryBuilder.builder(Entity.class, entityManager)
.colDefs(
// colDefs
)
.getChildCount(true)
.getChildCountFieldName("childCount")
.build();
Loading grid...