I'm implementing a datagrid with remote data, however when trying to use Grouping, the grid shows me as if it had no data from the request, even though the data is actually retrieved.
On my grid template:
:dataSource='dataSource' detailTemplate ="detailTemplate" :allowSelection="true" :allowGrouping="true"
:allowPaging="true" :allowSorting="true" :selectionSettings="selectionSettings" :sortSettings='sortOptions'
:pageSettings="pageOptions" :groupSettings="groupOptions">
...
field="main_ingredient_name" width="0" :visible="false">
...
...
On the script:
export default {
...
provide: {
grid: [Sort, Page, DetailRow, Group]
},
data() {
return {
...
sortOptions: {columns: [{field: 'main_ingredient_name', direction: 'Ascending'}]},
groupOptions: {showDropArea: false, columns: ['main_ingredient_name']},
}
},
...
Result:
If I remove the grouping, the table gets back to work fine: