Restrict dragging in non RadDockZone area

3 posts, 0 answers
  1. Ajay
    Ajay avatar
    42 posts
    Member since:
    Jul 2010

    Posted 08 Jul 2010 Link to this post

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

    Posted 09 Jul 2010 Link to this post

    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
  3. Ajay
    Ajay avatar
    42 posts
    Member since:
    Jul 2010

    Posted 09 Jul 2010 Link to this post

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