ASPxClientDockManager.GetZones Method
In This Article
Returns an array of zones that are contained in a page and meet a specified criteria.
#Declaration
TypeScript
GetZones(
filterPredicate?: ASPxClientDockingFilterPredicate
): ASPxClientDockZone[]
#Parameters
Name | Type | Description |
---|---|---|
filter |
ASPx |
An ASPx |
#Returns
Type | Description |
---|---|
ASPx |
An array of ASPx |
#Remarks
The ASPxDockManager component allows you to manage all panels and zones within a page. Use the GetZones method to access an array of zones on the page that meet the criteria defined in the filterPredicate delegate. You can get an array of all zones on the page using the ASPxClientDockManager.GetZones
method without any parameter.
#Example
The code sample below demonstrates how you can get a list of empty zones contained within a page.
function IsEmptyPredicate(zone) {
return (zone.GetPanelCount() == 0);
}
function GetEmptyZones() {
var EmptyZones = manager.GetZones(IsEmptyPredicate);
var ZoneList = '';
for (i = 0; i < EmptyZones.length; i++) {
ZoneList = ZoneList + ' ' + EmptyZones[i].zoneUID;
}
label.SetText('Empty zones:' + ZoneList);
}
See Also