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

Restrict dragging in non RadDockZone area

2 Answers 88 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 08 Jul 2010, 12:03 PM
Hi,

While using the Dock control, if I try to drag and drop a Dock control anywhere outside the DockZone, it gets dropped there.

I need a Dock only to be dropped into some defined DockZones , is it possible?

Thanks
Ajay Sharma

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 09 Jul 2010, 07:06 AM
Hello Ajay,

I believe RadDock's ForbiddenZones property will help you achieve your specific scenario. Here is an example showing this functionality: http://demos.telerik.com/aspnet-ajax/dock/examples/forbiddenzones/defaultcs.aspx.

Sincerely yours,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ajay
Top achievements
Rank 1
answered on 09 Jul 2010, 07:38 AM
Hi,

Thank you very much for the response.
I got it working with your help.

I used two properties:
1) DockMode="Docked"
This disables the dropping a Dock in a non Zone area.

2) ForbiddenZones="RadDockZone3"
This disables the dropping current Dock in the specified DockZone area.
Tags
Dock
Asked by
Ajay
Top achievements
Rank 1
Answers by
Pero
Telerik team
Ajay
Top achievements
Rank 1
Share this question
or