ASPxClientControlCollection.ForEachControl(action) Method
Performs the specified action for each control in the collection.
Declaration
ForEachControl(
action: ASPxClientControlAction
): void
Parameters
Name | Type | Description |
---|---|---|
action | ASPxClientControlAction | An ASPxClientControlAction object specifying an action to perform. |
Remarks
The code sample below demonstrates the use of the ForEachControl method.
function ExpandAll(s, e) {
ASPxClientControl.GetControlCollection().ForEachControl(function (c) {
if(c instanceof ASPxClientRoundPanel)
c.SetCollapsed(false);
});
}
See Also