ASPxClientUtils.GetIsParent(parentElement, element) Method
In This Article
Gets a value indicating whether the object passed via the parentElement parameter is a parent of the object passed via the element parameter.
#Declaration
TypeScript
static GetIsParent(
parentElement: any,
element: any
): boolean
#Parameters
Name | Type | Description |
---|---|---|
parent |
any | An object specifying the parent HTML element. |
element | any | An object specifying the child HTML element. |
#Returns
Type | Description |
---|---|
boolean |
|
#Remarks
#Example
Note
For a full example, refer to ASPx
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