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

is there an event for treeview looks like: onclientnodeanimating

2 Answers 20 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
khaled jendi
Top achievements
Rank 1
khaled jendi asked on 23 Sep 2010, 02:57 PM
hi,

I want to do something in javascript while the node is animating, actually, I have html div which contains vertical line, now, I want to increase the height of that line while the height of treeview is increasing, so it will looks like the line animating with tree too (decreasing is same)

I found onclientnodeanimationend, which is triggered only after the finish of animation, so, is there an event looks like onclientnodeanimating or how can I solve this problem?

2 Answers, 1 is accepted

Sort by
0
khaled jendi
Top achievements
Rank 1
answered on 25 Sep 2010, 06:49 PM
any one can help please?
0
Yana
Telerik team
answered on 28 Sep 2010, 03:36 PM
Hi khaled,

There is no such event, but you can use OnClientNodeExpanding and OnClientNodeCollapsing event of the treeview to indicate the start of animation and OnClientNodeAnimationEnd to to indicate the end.

The other option is to use jquery resize event like this:

<script type="text/javascript">
      function pageLoad() {
          var $ = $telerik.$;           
          $(".rtUL").resize(function() {
             //do something here
          });
 
      }
</script>

"rtUL" is the element which is resized when a node is expanded or collapsed.

Hope this helps.

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
khaled jendi
Top achievements
Rank 1
Answers by
khaled jendi
Top achievements
Rank 1
Yana
Telerik team
Share this question
or