Skip to main content

ASPxClientUtils.GetIsParent(parentElement, element) Method

Gets a value indicating whether the object passed via the parentElement parameter is a parent of the object passed via the element parameter.

Declaration

static GetIsParent(
    parentElement: any,
    element: any
): boolean

Parameters

Name Type Description
parentElement any

An object specifying the parent HTML element.

element any

An object specifying the child HTML element.

Returns

Type Description
boolean

true, if the parentElement is a parent for the element; otherwise, false.

Remarks

Example

The following example illustrates how to use the GetIsParent method.

function GetControl(visibleIndex, column) {
    return ASPx.GetControlCollection().GetControlsByPredicate(function (c) {
        var parent = grid.batchEditApi.GetCellTextContainer(visibleIndex, column);
        return ASPx.GetIsParent(parent, c.GetMainElement());
    })[0];
}
See Also