Skip to main content

ASPxClientControlBase.GetMainElement Method

Returns an HTML element that is the root of the control’s hierarchy.

Declaration

GetMainElement(): any

Returns

Type Description
any

An object that is the root HTML container element within the control element’s hierarchy.

Remarks

<dx:ASPxFormLayout ID="ASPxFormLayout" ClientInstanceName="formLayout" runat="server">
  …
</dx:ASPxFormLayout>
<dx:ASPxButton ID="ClearButton" runat="server" AutoPostBack="False" Text="Clear" UseSubmitBehavior="False">
     <ClientSideEvents Click="function(s, e) {
          ASPxClientEdit.ClearEditorsInContainer(formLayout.GetMainElement());
     }" />
</dx:ASPxButton>

For a full example, see Data Editors - Null Text demo.

See Also