This is a migrated thread and some comments may be shown as answers.
A problem in dock's ForbiddenZone
3 Answers 19 Views
This is a migrated thread and some comments may be shown as answers.
huang
Top achievements
Rank 1
huang asked on 02 Jul 2009, 09:30 AM
Dear all,
I encountered a problem when I setuped the Dock's "forbiddenZone" property. If I setup the dock's forbiddenZone dynamically  to the Zone which "the dock has already been inside it". When I drag the dock out and drop it to it's original zone or to nothing
(I setup the DockMode property to  be Docked), the dock will return to original zone as prediction. But another "dock target space" appears in the original zone. Is it a bug? 

Sincerely,
andre'   

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 06 Jul 2009, 12:21 PM
Hi Huang,

If you try to dynamically set the ForbiddenZones property to a zone where the dock is currently docked, you will get this behavior (another "dock target space" appears in the zone). In general the dock needs to be out of the zone (not docked to it) when you are setting it as a forbidden, otherwise you will get undefined behavior.

Can you please explain in detail what exactly you want to achieve, and we will be glad to help you?



Greetings,
Pero
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
huang
Top achievements
Rank 1
answered on 07 Jul 2009, 01:32 AM
Hello Pero,
 
My Application is that  RaddockZones are limited to been docked according to different types of docks( There are three kinds of docks). If one type of dock is docked into DockZone, other type of dock won't be docked in the same DockZone. In more special case, I also need to restrict the number of docks in a DockZone to be "One". Therefore, I add the ForbiddenZone's ID to a string array dynamically and apply it to all docks which have the same type of the dock I dropped in the DockZone.Then I face the problem as mentioned.  

Thanks for help
Andre'
0
Pero
Telerik team
answered on 09 Jul 2009, 12:15 PM
Hi Huang,

We carefully reviewed the information that you send us and we are not really sure that we fully understand your requirements.

Can you please open a new support ticket and send us your project, and we will do our best to help?


All the best,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
huang
Top achievements
Rank 1
Answers by
Pero
Telerik team
huang
Top achievements
Rank 1
Share this question
or