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.
<dxlp:ASPxLoadingPanel ID="ASPxLoadingPanel1" runat="server" ClientInstanceName="lp">
</dxlp:ASPxLoadingPanel>
<dxe:ASPxButton ID="btnShow" runat="server" AutoPostBack="False"
Text="Show" ClientInstanceName="button" >
<ClientSideEvents Click="function(s, e) {
lp.ShowInElement(s.GetMainElement());
}" />
</dxe:ASPxButton>
<dxe:ASPxButton ID="btnHide" runat="server" AutoPostBack="False"
Text="Hide" ClientInstanceName="button" >
<ClientSideEvents Click="function(s, e) {
lp.Hide();
}" />
</dxe:ASPxButton>
See Also