is there an event for treeview looks like: onclientnodeanimating

3 posts, 0 answers
  1. khaled jendi
    khaled jendi avatar
    64 posts
    Member since:
    Mar 2010

    Posted 23 Sep 2010 Link to this post

    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. khaled jendi
    khaled jendi avatar
    64 posts
    Member since:
    Mar 2010

    Posted 25 Sep 2010 Link to this post

    any one can help please?
  3. Yana
    Admin
    Yana avatar
    4845 posts

    Posted 28 Sep 2010 Link to this post

    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
Back to Top