This is a migrated thread and some comments may be shown as answers.

How to make the radtreeview's item expand?

2 Answers 118 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 16 Oct 2016, 12:48 AM

Hi, I use databinding for the radtreeview itemsource, and it's easy to get the xmlelement of the radtreeview's item. I want to expand the readtreeview's item , how to do it when I only know the xmlelement?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Milena
Telerik team
answered on 17 Oct 2016, 09:52 AM
Hi Jonathan,

I'm not quite sure what do you mean. However, you can add IsExpanded property in your business class/ view model and bind it to the TreeViewItem via style. Then you can change it's status to IsExpanded when you need to. For your convenience I implement this approach in the attached project. Please take a look at it and let us know if this works for you. If not - please provide us more detailed information or modify the sent project to show us your scenario.  

Regards,
Milena
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Jonathan
Top achievements
Rank 1
answered on 22 Oct 2016, 10:56 AM
Thank you Milena. I solve the problem with IsExpanded property and DataBinding.
Tags
TreeView
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Milena
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or