ASPxClientLoadingPanel.ShowInElement(htmlElement) Method
Invokes the loading panel, displaying it over the specified HTML element.
Declaration
ShowInElement(
htmlElement: any
): void
Parameters
Name | Type | Description |
---|---|---|
htmlElement | any | An object that specifies the required HTML element. |
Remarks
Use the ShowInElement
method on the client side to display the loading panel over a specific HTML element regardless of the value set to the ASPxLoadingPanel.ContainerElementID property.
<dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" runat="server" ClientInstanceName="lp">
</dx:ASPxLoadingPanel>
<dx:ASPxButton ID="btnShow" runat="server" AutoPostBack="False" Text="Show"
ClientInstanceName="button" >
<ClientSideEvents Click="function(s, e) {
lp.ShowInElement(s.GetMainElement());
}" />
</dx:ASPxButton>
<dx:ASPxButton ID="btnHide" runat="server" AutoPostBack="False" Text="Hide"
ClientInstanceName="button" >
<ClientSideEvents Click="function(s, e) {
lp.Hide();
}" />
</dx:ASPxButton>
See Also