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

Resize event

1 Answer 45 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Li-raz
Top achievements
Rank 1
Li-raz asked on 11 Mar 2014, 08:46 PM
In my application I need to place IFrame under the tree view and I need to know what is the size when it expands/collapsed
$("#groupPagesTreeView").resize(function() {
                    pubsub.emit("panelResized", $("#groupPagesTreeView"));
                });

how ever i am not getting the event and when 
 $scope.treeview = $("#groupPagesTreeView").data("kendoTreeView");
$scope.treeview.bind('expand', onExpand);
 $scope.treeview.bind('collapse', onExpand);

the events are called before the end of the resizing

is there a solution?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Mar 2014, 11:11 AM
Hello Li-raz,

The TreeView does not expose resizing-related events, because resizing is not part of its core functionality and user interaction. You can still use the expand and collapse events, but add a suitable timeout in the handler, e.g. 400 ms.

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