From 7c532ab986d4046df3e4088041a0423ee6910dbb Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Thu, 29 Apr 2021 16:25:13 -0400 Subject: [PATCH] refactor(demo): disable multi-columns sorting with Tree Data - 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. --- examples/webpack-demo-vanilla-bundle/src/examples/example05.ts | 1 + examples/webpack-demo-vanilla-bundle/src/examples/example06.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/webpack-demo-vanilla-bundle/src/examples/example05.ts b/examples/webpack-demo-vanilla-bundle/src/examples/example05.ts index 54cec7579..2bdba9d4f 100644 --- a/examples/webpack-demo-vanilla-bundle/src/examples/example05.ts +++ b/examples/webpack-demo-vanilla-bundle/src/examples/example05.ts @@ -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: '>=' }] } diff --git a/examples/webpack-demo-vanilla-bundle/src/examples/example06.ts b/examples/webpack-demo-vanilla-bundle/src/examples/example06.ts index 5408f1f29..bd2a7679e 100644 --- a/examples/webpack-demo-vanilla-bundle/src/examples/example06.ts +++ b/examples/webpack-demo-vanilla-bundle/src/examples/example06.ts @@ -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',