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 |
|
Remarks
Example
Note
For a full example, refer to ASPxGridView - BatchEdit - How to use and modify a control placed in DataItemTemplate.
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