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

Retrieve dock height in script

1 Answer 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kian Cha
Top achievements
Rank 1
Kian Cha asked on 15 Jan 2008, 04:07 PM
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

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 17 Jan 2008, 11:10 AM
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
Tags
Dock
Asked by
Kian Cha
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or