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

Problem with IsExpandedBinding after reload data

1 Answer 51 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 03 Jun 2016, 09:18 AM

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!

 

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 07 Jun 2016, 10:59 AM
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.
Tags
TreeListView
Asked by
Pablo
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or