Skip to content

Commit

Permalink
refactor(demo): disable multi-columns sorting with Tree Data
Browse files Browse the repository at this point in the history
- multi-columns sorting is simply not supported with Tree Data, it was really hard to get working correctly with a single sort so we won't support multi-columns sorting anytime soon.
  • Loading branch information
ghiscoding committed Apr 29, 2021
1 parent 4b094db commit 7c532ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class Example5 {
levelPropName: 'indent',
parentPropName: 'parentId'
},
multiColumnSort: false, // multi-column sorting is not supported with Tree Data, so you need to disable it
presets: {
filters: [{ columnId: 'percentComplete', searchTerms: [25], operator: '>=' }]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Example6 {
registerExternalResources: [new ExcelExportService()],
enableFiltering: true,
enableTreeData: true, // you must enable this flag for the filtering & sorting to work as expected
multiColumnSort: false,
multiColumnSort: false, // multi-column sorting is not supported with Tree Data, so you need to disable it
treeDataOptions: {
columnId: 'file',
childrenPropName: 'files',
Expand Down

0 comments on commit 7c532ab

Please sign in to comment.