RadDockZone inside a Grid, can not forbid

3 posts, 1 answers
  1. Stepan
    Stepan avatar
    29 posts
    Member since:
    Mar 2011

    Posted 06 Jun 2011 Link to this post

    Dear Telerik!

    Could you please advice me on the following issue:

    I'm making a web page with a grid, one of columns of which contains RadDockZones. Thus each line of the grid contains exactly one RadDockZone. There are other RadDockZones on the page (not in the grid!) in which all RadDocks are initially put.

    I need to make some of my empty RadDockZones forbidden for all new RadDocks after one RadDock got put in it. (it actually realizes a one-to-one relationship between one type of entities and another)

    There are excellent examples on you site showing similar behaviour. Like this one:

    But this method does not work for those RadDockZones which live inside the Grid! 

    Does being inside a grid change something for a RadDockZone? Why such RadDockZone still enables a RadDock to get put inside it even if the RadDock has the RadDockZone's client ID among the forbidden ones?

    I do appreciate any help...

    - Stepan.
  2. Answer
    Pero avatar
    1156 posts

    Posted 07 Jun 2011 Link to this post

    Hi Stepan,

    The ForbiddenZones and AllowedZones properties of the RadDockZone's expect a string array containing the UniqueNames (RadDockZone.UniqueName property) of the zones where the dock is forbidden and allowed to dock respectively. In case the UniqueName property of the zone is not set, then the server id is used as a UniqueName. Use the RadDockZone.get_uniqueName() client-side method to get the unique name of the zone on the client.

    Best wishes,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Stepan
    Stepan avatar
    29 posts
    Member since:
    Mar 2011

    Posted 08 Jun 2011 Link to this post

    Dear Pero,

    Thank you very much for you advice!

    My mistake was that I saved ClientIDs of the RadDockZones instead of their UniqueNames.

    - Stepan.
Back to Top