aspnet-js-aspxclientcombobox-dot-performcallback-x28-parameter-x29.md
Sends a callback to the server.
PerformCallback(
parameter: string
): void
| Name | Type | Description |
|---|---|---|
| parameter | string |
Information for the Callback event.
|
Use the PerformCallback method to update the control’s item collection. When you call this method, the ASPxComboBox clears its item collection and value on the client and then sends a callback to the server. On the callback, the server returns the required item collection and control selection.
Specify the PerformCallback method’s parameter to manage the required data items on the server.
The PerformCallback method’s callback raises the server-side Callback event, which gets the PerformCallback‘s specified parameter as the event’s Parameter argument. This event allows you to process data items according to information obtained from the client.
The Callback event fires when you call the PerformCallback method, and on every subsequent internal callback (for example, filtering or scrolling). Regardless of what causes a callback, the Callback event’s Parameter argument takes the value passed by the PerformCallback method.
Note that you can change the control’s value and selection, but cannot change its structure on a callback initiated by the PerformCallback method.
Read Tutorial: Callbacks Run Demo: Cascading Combo BoxesView Example: Combo Box for ASP.NET Web Forms - How to load items on a callback
Add two ASPxComboBox controls ( CmbCountry and CmbCity ) to your project and bind the CmbCountry combo box to the data source. The CmbCity combo box gets items on a callback according to the CmbCountry combo box value.
Handle the client-side SelectedIndexChanged event. In this event handler, call the PerformCallback method with the CmbCountry combo box value as a parameter.
Handle the server-side Callback event raised by the PerformCallback method.
See Also