ASPxClientLoadingPanel.SetText(text) Method
Sets the text to be displayed within the ASPxLoadingPanel.
Declaration
SetText(
text: string
): void
Parameters
Name | Type | Description |
---|---|---|
text | string | A string value specifying the text to be displayed within the ASPxLoadingPanel. |
Remarks
Use the SetText method on the client side to specify the text to be displayed within the ASPxLoadingPanel. The client ASPxClientLoadingPanel.GetText method can be used to obtain the text displayed within the control.
Note
The SetText method does not HTML encode the specified text.
Example
This example demonstrates how the client SetText(text)
method can be used to dynamically change the text displayed by the loading panel.
function SendCallback(s,e) {
clientCallback.PerformCallback();
clientLoadingPanel.SetText(s.name);
clientLoadingPanel.Show();
}
<dx:ASPxCallback id="ASPxCallback1" runat="server" ClientInstanceName="clientCallback">
<ClientSideEvents CallbackComplete="function(s, e) { clientLoadingPanel.Hide(); }" />
</dx:ASPxCallback>
<div style="float: left;margin-right: 10px;">
<dx:ASPxButton ID="Text1" runat="server" Text="Show Text1" AutoPostBack="False">
<ClientSideEvents Click="SendCallback" />
</dx:ASPxButton>
</div>
<div>
<dx:ASPxButton ID="Text2" runat="server" Text="Show Text2" AutoPostBack="False">
<ClientSideEvents Click="SendCallback" />
</dx:ASPxButton>
</div>
<dxlp:ASPxLoadingPanel ID="loadingPanel" ClientInstanceName="clientLoadingPanel" runat="server" />
See Also