Hello there,
we want to sort the grp column by default.
groupModel: {
checkbox: true,
checkboxHead: true,
on: true,
pivot: false, //pivotMode
summaryInTitleRow: 'all', //to display summary in the title row.
header: false, //hide grouping toolbar.
grandSummary: true,
titleInFirstCol: true,
titleIndx: 'grp',
fixCols: false,
dataIndx: ['Item'],
groupCols: [], //grouping along column axis.
collapsed: [true, true],
agg: {
Count: "sum"
},
showSummary: [false], //to display summary at end of every group.
title: [
"{0} ({1})",
"{0} - {1}"
],
summaryTitle: {
sum: ""
} },
sortModel: {
sorter: [{ dataIndx: 'grp', dir: 'up' }],
space: true,
ignoreCase: true,
multiKey: null,
single: false
}
However it is not working. It shows the small triangle but actually it is not sorting.
we also want to keep the group sorted at the pivot mode. Still no luck.
If we choose another column other than the "grp" column - such as the Item column in the example, it works.
Any idea? thanks.