Problem with IsExpandedBinding after reload data

2 posts, 0 answers
  1. Pablo
    Pablo avatar
    8 posts
    Member since:
    Feb 2016

    Posted 03 Jun Link to this post

    Dear team,

    I've a problem with IsExpandedBinding on refreshing data. It's a user experience problem:

    When I reload data the control first collapse all nodes and then it expands expanded nodes. This expand status change is very fast but visible and not very nice.

    I don't know if TreeListView works like this, if is a problem of my code or if exist some way of avoid this behavior. I would find a way of refresh control after set the expand status of all nodes.

    This is the header of my control:

    <telerik:RadTreeListView                    
         IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}"                                        
         AutoGenerateColumns="False"
         IsDragDropEnabled="True"
         IsReadOnly="False"
         ItemsSource="{Binding PivotedItems}"
         SelectedItem="{Binding CurrentPivotedItem, Mode=TwoWay}">

     

    Thank you in advance!

     

     

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 07 Jun Link to this post

    Hello Pablo,

    Could you please clarify what you mean by "refreshing data"?

    If what you meant is resetting RadTreeListView's ItemsSource, I'm afraid that this behavior is expected as when you update the ItemSource, there's no way for RadTreeListView to know what type of collection you will provide and thus, it has to rerender its items.

    If there's something else you had in mind, please let me know so I may be able to further assist you.

    Regards,
    Dilyan Traykov
    Telerik
    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
Back to Top