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

How to drag and drop a RadDock in a RadDock

7 Answers 149 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Joël
Top achievements
Rank 1
Joël asked on 11 May 2009, 01:57 PM
Hi,

can't find an answer on the forum, so I post :).

There is a demo in flash of what I have to do with RadDock controls :
http://proto-widgets.airsoftconsulting.info/DEMO_200409_RL_APRR%20v3.html

The problem is on the end on the demo, when objects from the right column are draged and droped on object on the main column. Both object are RadDock controls.

Has any one an idea ?

Thanks !

7 Answers, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 12 May 2009, 10:51 AM
You could add a RadDockZone(where you could add another RadDocks) into a RadDock
0
Joël
Top achievements
Rank 1
answered on 12 May 2009, 11:13 AM
Sounds like a good idea :-)

Thanks. I'll try this.

I'll tell you if it works
0
Joël
Top achievements
Rank 1
answered on 12 May 2009, 12:06 PM
Hi Obi-Wan. I tried, but it dosen't work.

1/ I put raddock1 in radzone1
2/ I put radzone2 in raddock1
3/ I drag and drop raddock2 in radzone2. Radzone2 is highliting, but raddock2 is docked in radzone1

Maybe with some more C# or javascript it will work. Any idea ?
0
Accepted
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 12 May 2009, 12:42 PM
Set RadDock2.ForbiddenZones property to RadDockZone1 and everything will be fine.
A simple example is available here:
http://demos.telerik.com/aspnet-ajax/dock/examples/forbiddenzones/defaultcs.aspx
0
Joël
Top achievements
Rank 1
answered on 13 May 2009, 10:32 AM
Thank you, it works fine.

But is there another way than setting RadDock2.ForbiddenZones property to RadDockZone1 ?

Because users will expect to be able to drag and drop in the two zones.
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 14 May 2009, 08:50 AM
-RadDock1 is in RadDockZone1
-RadDockZone2 is in RadDock1
If you try to dock RadDock2 in RadDockZone2 it will be docked to RadDockZone1 - this is the reason to set RadDock2.ForbiddenZones to RadDockZone1. 

My suggestion is to:
  - Use several RadDockZones - one below the other(change their style to look like one RadDockZone).
  - Each main RadDockZone can have only one RadDock - when a RadDock is docked you should invoke a JavaScript method which will set its parent zone as Forbidden for all other RadDocks.

0
Joël
Top achievements
Rank 1
answered on 14 May 2009, 09:39 AM
Hi,

I think i'll do with your first suggestion.

The user can drag and drop as much Docks as he wants. So "several" radzones is not enough.

Thank you for your help :)
Tags
Dock
Asked by
Joël
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Joël
Top achievements
Rank 1
Share this question
or