Retrieve dock height in script

2 posts, 0 answers
  1. Kian Cha
    Kian Cha avatar
    22 posts
    Member since:
    May 2007

    Posted 15 Jan 2008 Link to this post

    Hi,

    How do I get the new height of the dock pane when user expands or collapses it? I tried the following methods but none of them work.Where can I find documentation for RadDock client API?

    function OnClientCommand(sender, eventArgs)
    {
        
    if (eventArgs.Command.get_name() == "ExpandCollapse"
    )
        {
            sender.get_Height();  // return null.
            eventArgs.Command.get_RadDock().get_Height();  // return null.
            eventArgs.Command.get_RadDock().get_NewHeight(); // object doesn't support this method.
            eventArgs.get_OldHeight(); // object doesn't support this method.
            eventArgs.get_NewHeight(); // object doesn't support this method
        
    }
    }


    Thanks.

    Kian
  2. Petya
    Admin
    Petya avatar
    869 posts

    Posted 17 Jan 2008 Link to this post

    Hello Kian Cha,

    You can get the height using Telerik.Web.DomElement.getBounds(sender.get_element()).height. Let us know if you have any other problems.

    Best wishes,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top