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

IsExpandedBinding not always updating

2 Answers 108 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 14 Jul 2016, 02:56 PM

I have a TreeListView control that I need to expand and collapse rows via the view model. The problem is the TreeListView control will sometimes update after updating the view model but not always. Or sometimes the TreeListView control will update after a few seconds. If I scroll to the bottom of the TreeListView control and back it will always refresh to match the correct view model values. 

I have put debug statements next to the OnPropertyChanged calls and it always seems to be firing correctly. Since the TreeListView control will sometimes update it seems like it is not a binding issue to me. It's configured to use TwoWay binding. INotifyPropertyChanged is implemented in the view model. It feels like the TreeListView is not always getting the OnPropertyChanged event but I don't know why it would get it sometimes and not other times.

I am thinking I could implement a way to force the TreeListView control to refresh any time the property that IsExpandedBinding is bound to changes but this does not seem like a good solution to me.

Any thoughts as to why this may occur?

2 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 14 Jul 2016, 04:57 PM
This may be a duplicate of this thread . I somehow missed it when doing a search.
0
Stefan
Telerik team
answered on 19 Jul 2016, 08:10 AM
Hi Scott,

I have replied you in the support thread to which you referred. In order to keep the discussion consistent, I would kindly ask you to continue any further communication regarding this topic in it.

Thanks for your understanding.

Regards,
Stefan X1
Telerik by Progress
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
Scott
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or