The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientControlCollection.GetControlsByPredicate(predicate) Method

Returns all controls in the collection that satisfy the specified predicate.

Declaration

GetControlsByPredicate(predicate: ASPxClientControlPredicate): any[]

Parameters

Name Type Description
predicate ASPxClientControlPredicate

An ASPxClientControlPredicate object that is a predicate used to search for controls in the collection.

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