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

Two-Way Binging in TreeView

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

6 Replies

KM Kanagambigai Murugan Syncfusion Team 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. 

TR Thomas Riml 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.


KM Kanagambigai Murugan Syncfusion Team 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. 

KM Kanagambigai Murugan Syncfusion Team 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.  

TR Thomas Riml 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


MK Muthukrishnan Kandasamy Syncfusion Team 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 

Live Chat Icon For mobile
Up arrow icon