Skip to main content

ASPxClientLoadingPanel.ShowInElementByID(id) Method

Invokes the loading panel, displaying it over the specified element.

Declaration

ShowInElementByID(
    id: string
): void

Parameters

Name Type Description
id string

A string that specifies the required element’s identifier.

Remarks

Use the ShowInElementByID 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.ShowInElementByID(s.GetMainElement().id);
    }" />
</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