SelectedItems bug

2 posts, 0 answers
  1. Denis
    Denis avatar
    2 posts
    Member since:
    May 2012

    Posted 13 Jun 2012 Link to this post


    RadTreeList SelectedItems retun null when i expand the item, select some of the childs, collaps this item and submit the form. Is there some solution for this?

    Best regards, Denis.
  2. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 14 Jun 2012 Link to this post


    Take a look at the TreeList/Client-side Selection online demo. If you first enable the multi-row selection checkbox and then select some of the child items of the parent row; you will see the label updates with the number of children you selected. But, when you subsequently collapse the parent, the label shows the selected items count as 0. Expanding the row a second time shows that your selections are preserved.

    So, it looks like you'll have to first be certain that the parent is expanded prior to attempting to get the selected items after submitting the form.

    You can reference this forum post for help in preserving the expanded state of the tree in session: Maintain State Between Callbacks?

    Hope this helps!
Back to Top