Centering a Floating RadDock

2 posts, 0 answers
  1. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 21 Mar 2008 Link to this post

    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.

  2. Sophy
    Sophy avatar
    636 posts

    Posted 24 Mar 2008 Link to this post

    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top