We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Expand/Collapse is no longer working on our treegrids

Hi, we have 2 tree grids in our application. Both successfully used the expand all and collapse all that is provided on the toolbar. But at some point in the last 1 1/2 weeks, this function stopped working.
Here is the error:

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.
Thanks in advance for the help!
Amber

1 Reply

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team September 30, 2019 02:22 AM

Hi Amber, 

Thanks for contacting Syncfusion Support. 

We have checked your reported problem by preparing sample with version 17.3.9-beta but we are unable to reproduce your reported problem at our end.  

Refer to the sample Link:- 

We need some more additional details to find the cause of the issue. Share us the following details. 

  1. Complete TreeGrid code example.
  2. If possible replicate the issue in the above sample and revert us back.
  3. Screenshot/Video Demo to replicate the issue.
  4. Product version details.

Regards, 
Farveen sulthana T 


Loader.
Live Chat Icon For mobile
Up arrow icon