BootstrapCallbackPanel.Callback Event
Fires when a round trip to the server has been initiated by a call to the client BootstrapClientCallbackPanel.PerformCallback method.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
Event Data
The Callback event's data class is CallbackEventArgsBase. The following properties provide information specific to this event:
Property | Description |
---|---|
Parameter | Gets a string that contains specific information (if any) passed from the client side. |
Example
This example demonstrates the basic functionality of the Callback Panel.
- Initialize a new instance of the BootstrapCallbackPanel class.
- Add required controls to the
ContentCollection
array. - Use the client BootstrapClientCallbackPanel.PerformCallback method to initiate a callback. Handle the
BootstrapCallbackPanel.Callback
event to process a callback on the server side.
The image below shows the result:
protected void CallbackPanel_Callback(object sender, DevExpress.Web.CallbackEventArgsBase e) {
if(!string.IsNullOrEmpty(e.Parameter))
passedInfo.InnerText = "Passed information: \"" + e.Parameter + "\"";
}
See Also