core.js:5847 ERROR TypeError: Cannot read property 'index' of undefined
at TreeGridComponent.push../node_modules/@syncfusion/ej2-treegrid/src/treegrid/base/treegrid.js.TreeGrid.localExpand (treegrid.js:2084)
at TreeGridComponent.push../node_modules/@syncfusion/ej2-treegrid/src/treegrid/base/treegrid.js.TreeGrid.expandCollapse (treegrid.js:1987)
at TreeGridComponent.
(treegrid.js:1831) at TreeGridComponent.push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:204)
at TreeGridComponent.push../node_modules/@syncfusion/ej2-treegrid/src/treegrid/base/treegrid.js.TreeGrid.collapseRow (treegrid.js:1829)
at TreeGridComponent.push../node_modules/@syncfusion/ej2-treegrid/src/treegrid/base/treegrid.js.TreeGrid.expandCollapseAll (treegrid.js:1918)
at TreeGridComponent.push../node_modules/@syncfusion/ej2-treegrid/src/treegrid/base/treegrid.js.TreeGrid.collapseAll (treegrid.js:1904)
at Toolbar.push../node_modules/@syncfusion/ej2-treegrid/src/treegrid/actions/toolbar.js.Toolbar.toolbarClickHandler (toolbar.js:78)
at Observer.push../node_modules/@syncfusion/ej2-base/src/observer.js.Observer.notify (observer.js:99)
at TreeGridComponent.push../node_modules/@syncfusion/ej2-base/src/component.js.Component.notify (component.js:205)
at TreeGridComponent.
(treegrid.js:684) at TreeGridComponent.push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:204)
at Grid.grid.toolbarClick (treegrid.js:682)
at Observer.push../node_modules/@syncfusion/ej2-base/src/observer.js.Observer.notify (observer.js:99)
at Grid.push../node_modules/@syncfusion/ej2-base/src/base.js.Base.trigger (base.js:152)
at Toolbar.push../node_modules/@syncfusion/ej2-grids/src/grid/actions/toolbar.js.Toolbar.toolbarClickHandler (toolbar.js:210)
We are not using any custom code for this, just the toolbar functionality. We have Collapse All added to the toolbar options. All other toolbar options such as pdf export, excel export, add, edit, delete are working.