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

Centering a Floating RadDock

1 Answer 83 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 21 Mar 2008, 03:34 PM
I am trying to center a Floating RadDock on my page.

When I make a call to RadDock.set_left(400), nothing happens.  Other functions such as set_collapsed work just fine.  None of the assignment functions for positioning, sizing, or title work.  In fact, if I call the get functions for those, it shows that the value has been changed, but it is not reflected on the client.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 24 Mar 2008, 08:34 AM
Hello Seth,

Thank you for contacting us.

Currently RadDock does not change its position when setting its x-coordinate via the function set_left() because set_left changes only a value in the RadDock object but does not change the x-coordinate of the corresponding html element which represents the dock object. To achieve the desired functionality I suggest you the following workaround which manipulates the html object, e.g:

$get("RadDock1").style.left = "400px";

where RadDock1 is the id of the RadDock object.

Please, let us know if you need further assistance.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Seth
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Share this question
or