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

RadDockZone inside a Grid, can not forbid

2 Answers 33 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Stepan
Top achievements
Rank 1
Stepan asked on 06 Jun 2011, 03:46 PM
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:
http://www.telerik.com/community/forums/aspnet-ajax/docking/limit-number-of-docks-per-zone-without-displaying-placeholder.aspx

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 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 07 Jun 2011, 11:50 AM
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,
Pero
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.

0
Stepan
Top achievements
Rank 1
answered on 08 Jun 2011, 02:35 PM
Dear Pero,

Thank you very much for you advice!

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

- Stepan.
Tags
Dock
Asked by
Stepan
Top achievements
Rank 1
Answers by
Pero
Telerik team
Stepan
Top achievements
Rank 1
Share this question
or