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

Treeview height after exand/collapse

1 Answer 451 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Subhash
Top achievements
Rank 1
Subhash asked on 12 Mar 2013, 11:03 AM
Hi

How can i get the height of the kendo treeview after the node has been expanded/collapsed?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Mar 2013, 05:20 PM
Hello Anupama,

You can use the TreeView's events and jQuery outerHeight.

Since the event is fired before the expand / collapse animation has completed, you can measure the TreeView's height with some timeout.

http://docs.kendoui.com/api/web/treeview#events

this in the event handler is the TreeView object instance.

this.wrapper is the TreeView's outer element that you probably want to measure.

All the best,
Dimo
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
Subhash
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or