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

RadDock positioning issue (set_top() set_left())

1 Answer 72 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Israel
Top achievements
Rank 1
Israel asked on 29 Jul 2008, 02:57 PM
Hello all,

I have a RadDock control inside a RadDockZone.
I also have a command that in its client side event I execute javascript that docks and undocks the RadDock from the RadDockZone according to the current RadDock.get_dockMode() method. Up untill now, everything works great.

When I undock the RadDock I want to position it in the middle of the screen so
I calculate the right top and left values.

The problem is, that it seems like RadDock.set_top() and RadDock.set_left() method don't work well.

I debugged the code, and indeed the methods change the values of the _left and _top vars of the RadDock client-side object, but the dock isn't positioned accordinaly on the screen!

I also checked the RadDock.get_element().offsetLeft/Top properties and the numbers there are completely different, and it seems that the RadDock is positioned with accordance to those values.

I also tried the RadDock.get_element().style.left/top option, but the results are the same.

Anyone has a clue?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 30 Jul 2008, 12:50 PM

Hello Israel,

I prepared a sample page which demonstrates the scenario you describe. Please, take a look at the attached page and let me know whether it answers the requirements of your scenario.
If the provided example cannot help you solve the issue you have, please, send us a simple page which reproduces the problem so that we can test it locally and research the issue. You will need to open a support ticket in order to have the right to attach files. Please, download a trial version of the RadControls for ASP.NET AJAX suite and you will have the right to open a support ticket. For your convenience I have attached a screenshot with instructions how to open a support ticket.

Sincerely yours,

Sophy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Israel
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Share this question
or