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

Prevent dock being dropped into first place

1 Answer 38 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Clare
Top achievements
Rank 1
Clare asked on 03 Feb 2009, 05:09 PM
Hi,

Am using the RadDocks and dynamically adding a mix of controls - some of which should always appear first in their different zones, others can be moved around.

Can I stop the movable controls from being dropped into first position i.e. Index 0? It's not that an error's being caused, but the users are slightly confused to move something above it and then have it moved below when they navigate back to the page later.

For various reasons, I'd rather not add in another Zone and use the forbidden zones functionality - is there a client side javascript route I could use?

Thanks
Clare

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 04 Feb 2009, 10:13 AM
There are two possible approaches:
 1) If the RadDock is docked to "0" position -> move it with JavaScript to the "1" position.
Here are several examples which could be in help:
http://demos.telerik.com/aspnet-ajax/dock/examples/clientsideevents/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/dock/examples/clientsideapi/defaultcs.aspx
online documentation: http://www.telerik.com/help/aspnet-ajax/dock_clientraddock.html
 2) The second approach is to add two zones (one below the other - your suggestion). If you remove the RadDockZone1 - > bottom margin and bottom border, RadDockZone2 -> top border  , they will look as one RadDockZone.

On my opinion the second approach is more elegant.
Tags
Dock
Asked by
Clare
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or