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

Expander indicator not removed when children count -> 0

1 Answer 78 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 17 Dec 2010, 07:33 PM
I am currently defining the ChildTableDefinition item source to a List ("Children").  The number of items in the list is editable on the parent item and can cause large updates (which is why I am using a List and not an Observable collection).  When the user modifies the number of child elements we regenerate the List and then issue a property change notification for the Children property.  

When the user transitions the number of children from a non-zero to a 0 the expander control remains (although trying to expand it does not show any children).  Alternatively transitioning from a 0 to a non-zero does not create an expander control.

Is there a way to update the expander control to reflect transition to having children aside from using an ObservableCollection (it worked when I was using one but the performance was not desirable)?

Thanks

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Dec 2010, 08:52 AM
Hi,

 You need to implement INotifyCollectionChanged for this list and raise needed events if you want this to work automatically. You can try also out latest internal build - the performance with ObservableCollection should be better now. 

Greetings,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
TreeListView
Asked by
Greg
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or