Expander indicator not removed when children count -> 0

2 posts, 0 answers
  1. Greg
    Greg avatar
    7 posts
    Member since:
    Sep 2010

    Posted 17 Dec 2010 Link to this post

    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)?

  2. Vlad
    Vlad avatar
    11100 posts

    Posted 20 Dec 2010 Link to this post


     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. 

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
Back to Top