I have 4 RadDocks ("RadDock1", "RadDock2", etc.) inside of RadDockZone1. In the OnClientDockPositionChanged() function in Javascript, I would like to iterate through each RadDock in RadDockZone1. How can I do this using a foreach loop, or another method?
2 Answers, 1 is accepted
0
Accepted
Dobromir
Telerik team
answered on 03 Jan 2011, 02:26 PM
Hi Richard,
To get reference to all the docks in a specific DockZone you can use the get_docks() method of the dock zone, e.g.:
functionOnClientDockPositionChanged(dock, args)
{
vardockZoneId = dock.get_dockZoneID();
vardockZone = $find(""+ dockZoneId);
if(dockZone)
{
vardocks = dockZone.get_docks();
for(vari = 0; i < docks.length; i++)
{
alert(docks[i].get_id());
}
}
}
You can find more information about the RadDockZone client-size object in the following help article: RadDockZone Client Object