ASPxClientControlCollection.GetControlsByPredicate(predicate) Method
In This Article
Returns all controls in the collection that satisfy the specified predicate.
#Declaration
TypeScript
GetControlsByPredicate(
predicate: ASPxClientControlPredicate
): any[]
#Parameters
Name | Type | Description |
---|---|---|
predicate | ASPx |
An ASPx |
#Returns
Type | Description |
---|---|
any[] | An array of all client controls found. |
#Remarks
The code sample below demonstrates how to use the GetControlsByPredicate method to obtain all controls whose name contains a specific substring.
var controls = ASPxClientControl.GetControlCollection().GetControlsByPredicate(function(c) {
return c.name.indexOf("panel") > -1;
});
#Online Example
See Also