ASPxClientLoadingPanel.SetText(text) Method
In This Article
Sets the text to be displayed within the ASPxLoadingPanel.
#Declaration
TypeScript
SetText(
text: string
): void
#Parameters
Name | Type | Description |
---|---|---|
text | string | A string value specifying the text to be displayed within the ASPx |
#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 Set
#Example
This example demonstrates how the client SetText(text)
method can be used to dynamically change the text displayed by the loading panel.
js
function SendCallback(s,e) {
clientCallback.PerformCallback();
clientLoadingPanel.SetText(s.name);
clientLoadingPanel.Show();
}
html
<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