Skip to main content

ASPxClientUtils.GetParentByTagName(element, tagName) Method

Returns a reference to the specified HTML element’s first parent object whose element name matches the specified value.

Declaration

static GetParentByTagName(
    element: any,
    tagName: string
): any

Parameters

Name Type Description
element any

An object specifying the child HTML element whose parent elements are searched.

tagName string

A string value specifying the element name (tag name) of the desired HTML element.

Returns

Type Description
any

An object representing the first parent element with a matching element name or a null value if no matching element is found.

Remarks

...
ASPxClientUtils.GetParentByTagName(grid.GetMainTable(),"table");
...
ASPxClientUtils.GetParentByTagName(button.GetMainElement(),"div");
...
See Also