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

treeview.collapse() removes child nodes if they had not been expanded

1 Answer 68 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
P
Top achievements
Rank 1
P asked on 13 Nov 2012, 06:31 PM
It seems if you use collapse() on nodes that have not yet been expanded than you will make those child nodes dissapear.

You can reproduce this on the TreeView / API demo page:

1) open http://demos.kendoui.com/web/treeview/api.html
    - notice that "Item 2" is collapsed.
2) Click on the "Collapse All nodes" button
  -  notice that "Item 1" is collapsed
3) Click on "Item 2" in the tree
 - notice that it will not expand.
 - notice that clicking on "Item 1" will expand
4) Now refresh the page (http://demos.kendoui.com/web/treeview/api.html)
5) This time, Click on "Item 2" in the tree to expand it.
6) Click on the "Collapse All nodes" button
 - notice that "Item 2" is collapsed
7) Click on "Item 2"
  - notice that it expands.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 14 Nov 2012, 08:10 AM
It appears that the issue has been fixed between the releases, as it can not be observed in the online demos anymore.

Greetings,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
P
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or