A problem in dock's ForbiddenZone

4 posts, 0 answers
  1. huang
    huang avatar
    10 posts
    Member since:
    Jun 2009

    Posted 02 Jul 2009 Link to this post

    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'   
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 06 Jul 2009 Link to this post

    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.
  3. huang
    huang avatar
    10 posts
    Member since:
    Jun 2009

    Posted 06 Jul 2009 Link to this post

    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'
  4. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 09 Jul 2009 Link to this post

    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.
Back to Top