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
close icon

Issue with ejs-treeview node expanding


Hi,
I am facing an issue with ejs-treeview node expanding.
After adding the items to tree view dataSource the node expanding is not working on fist click.
we need to click the node twice to get it expanded.

You can find the sample code at below link.
https://stackblitz.com/edit/angular-gawhtj



1 Reply

CI Christopher Issac Sunder K Syncfusion Team November 2, 2018 02:31 AM UTC

Hi Amit,  
  
Thank you for contacting Syncfusion support.  
  
We have checked your provided sample and we can reproduce your reported issue “after adding items to items to dataSource, updated data values not refreshed” in TreeView. If we update the datasource, it will update the data alone but not refreshed in TreeView. Based on this, our TreeView component works for manually call the refresh method (For first time datasource not updated in tree). Currently, we don’t have provided the pipeline support (“Update the TreeView based on updated data”) for TreeView component.   
  
However, we have considered this as a feature and added it into our feature request list. This will be estimated to be available in our Essential Studio 2018 Volume 4 Service Pack1 release which is expected to be rolled out in the month of January, 2019.  
  
Meanwhile, you can rebind the dataSource for TreeView using fields property to resolve it as a workaround solution. In the below sample, we have updated the entire dataSource with defined expanded property to expand it. Please refer the below sample link.  
  
Could you please check the above sample and get back to us if you need any further assistance? 

Thanks, 
Christo

Loader.
Live Chat Icon For mobile
Up arrow icon