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

Two-Way Binging in TreeView

Thread ID:





148248 Oct 11,2019 09:49 AM UTC Nov 4,2019 12:16 PM UTC Blazor 6
Tags: TreeView
Thomas Riml
Asked On October 11, 2019 09:49 AM UTC

Is there an example how to Two-Way bind a EjsTreeView so that the "Expanded" value gets also set from den UI.

Kanagambigai Murugan [Syncfusion]
Replied On October 14, 2019 12:49 PM UTC

Hi Thomas, 

Good day to you. 

You can achieve this requirement by using ExpandedNodes property of treeview. But, currently we have known issues while updating the ExpandedNodes value when it is changed via UI. We have logged a bug report on it. We will fix and include the fix in our upcoming patch release which is expected to be rolled out on or before 25th Oct, 2019. We appreciate your patience until then. 

You can track the status of this via the following link 

Please let us know if you have any queries. 

Kanagambigai M. 

Thomas Riml
Replied On October 14, 2019 01:18 PM UTC

Hi Kanagambigai,

thanks for the response - this makes sense.
Was trying around and never got any changes when i expanded it with UI.

Nice to hear that there is a fix on the way.

Thanks a lot.


Kanagambigai Murugan [Syncfusion]
Replied On October 15, 2019 05:00 AM UTC

Hi Thomas, 

Thanks for the update. 

We will update you once the fix is included and our patch release is rolled out. 

Kanagambigai M. 

Kanagambigai Murugan [Syncfusion]
Replied On November 1, 2019 06:47 AM UTC

Hi Thomas, 
Thanks for your patience.  
We are glad to inform that our latest( NuGet package release has been rolled out and the issue with updating the ExpandedNodes property value while it is interacting via UI has been resolved in this version. We have prepared a sample for your reference. 
Kindly check the above sample and let us know if you have any queries.  
Kanagambigai M.  

Thomas Riml
Replied On November 1, 2019 08:10 PM UTC


thanks for the update - was trying the update and its still the same for me.
Same on the example you linked. ExpandedNodes are always null.
The bound Array and tree.ExpandedNodes are always null.

Was using .net core 3.1 and Syncfusion.Blazor


Muthukrishnan Kandasamy [Syncfusion]
Replied On November 4, 2019 12:16 PM UTC

Hi Thomas, 
Thanks for contacting Syncfusion support. 
We have checked your query that treeview expandednodes always null. The expandednodes property working fine in our end, could you please check the below video? 
If still you are facing the same problem, could you please ensure the following things. 
1.     You can access the TreeView component properties and methods. 
2.     In application level, you are modifying the expanded node values as null 
Muthukrishnan K 


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