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

Limit DockZone to only 1 RadDock

3 Answers 64 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Voss Grose
Top achievements
Rank 1
Voss Grose asked on 20 Jul 2008, 01:16 AM
Is there a way to limit a Zone to only 1(or some number) of docks?

I found a post from last year, but the code did not work for me.

3 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 21 Jul 2008, 11:39 AM
Hello Voss,

Please, take a look at the following forum threads which address the same issue:
You will need to write custom code depending on your exact scenario. If the above suggested threads cannot help you implement the desired functionality, please, explain in details which are the problems you encounter and the scenario you have. We will be glad to help you.

Greetings,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Voss Grose
Top achievements
Rank 1
answered on 21 Jul 2008, 01:24 PM
This example "Make each dockzone just hold one dock?" did not work for me in either FF or IE.

I added the page to my project.

The "var zone2 = $find(dock.get_DockZoneID());" failed.

Can u re-test the example to confirm that it works?
thanks....
0
Sophy
Telerik team
answered on 21 Jul 2008, 01:51 PM
Hello Voss,

The client-side API of RadDock from the last year is a little bit changed to follow the ASP.NET Ajax naming conventions. You can use the RadDock Client Object help article for reference. That is why, the line you mention fails. You need to replace get_DockZoneID() with get_dockZoneID(), e.g:
var zone2 = $find(dock.get_DockZoneID());
For your convenience I have attached a modified version of the example from the Make each dockzone just hold one dock? forum thread which uses the new client-side API of the control.

Kind regards,
Sophy
the Telerik team

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