How to make the radtreeview's item expand?

3 posts, 1 answers
  1. Jonathan
    Jonathan avatar
    26 posts
    Member since:
    Jan 2016

    Posted 15 Oct Link to this post

    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. Answer
    Milena
    Admin
    Milena avatar
    201 posts

    Posted 17 Oct Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jonathan
    Jonathan avatar
    26 posts
    Member since:
    Jan 2016

    Posted 22 Oct in reply to Milena Link to this post

    Thank you Milena. I solve the problem with IsExpanded property and DataBinding.
Back to Top