Skip to content

Commit

Permalink
fix(Demo): RowGrouping demo is broken in ag-grid 27
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyan committed Apr 12, 2022
1 parent 6704657 commit d8c8988
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo/enhanced/RowGrouping.bbj
Expand Up @@ -62,13 +62,15 @@ setupGrid:
rem First we group by music type
declare GxColumn musicTypeColumn!
musicTypeColumn! = grid!.getColumn("MUSICTYPE")
musicTypeColumn!.setRowGroup(1)
musicTypeColumn!.setEnableRowGroup(1)
musicTypeColumn!.setRowGroupIndex(0)

rem Second we group by artist
rem @see https://www.ag-grid.com/javascript-grid-cell-expressions/
declare GxColumn artistColumn!
artistColumn! = grid!.getColumn("ARTIST")
artistColumn!.setRowGroup(1)
artistColumn!.setEnableRowGroup(1)
artistColumn!.setRowGroupIndex(1)
artistColumn!.setValueGetterExpression("if(data) return 'Artist : ' + data.ARTIST")
Expand Down

0 comments on commit d8c8988

Please sign in to comment.