Multiple row grouping
I need to know how to implement the multiple way of grouping rows, since the documentation indicates that it is possible, however, there is no example where an array of fields is used for the groupRowsBy property, and although I try, I can not do that works. Somebody could help me? Thanks
I found the solution!
I'll leave it here in case someone needs it:
You need to simply define two arrays like this:
Then, you need to bind the two arrays to the corresponding properties, like this:
That's it!
I'll leave it here in case someone needs it:
You need to simply define two arrays like this:
Code: Select all
groupRowsBy: ["columnName1", "columnName2"]
multiSortMeta: [{field: 'columnName1', order: 1}, {field: 'columnName2', order: -1}]
Code: Select all
rowGroupMode="rowspan" :groupRowsBy="groupRowsBy" sortMode="multiple" :multiSortMeta="multiSortMeta"
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests