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

SelectedItems bug

1 Answer 26 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 13 Jun 2012, 10:35 AM
Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 14 Jun 2012, 09:06 PM
Denis,

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!
Tags
TreeList
Asked by
Denis
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or