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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Expand/Collapse is no longer working on our treegrids

Thread ID:





147930 Sep 27,2019 08:37 PM UTC Sep 30,2019 10:22 AM UTC Angular - EJ 2 1
Tags: TreeGrid
Amber Saladin
Asked On September 27, 2019 08:37 PM UTC

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!

Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On September 30, 2019 10:22 AM UTC

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.

Farveen sulthana T 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon