Handling the BusyChanged event for controls

Handling the BusyChanged event for controls

Handling the BusyChanged event for controls

Each control exposes a "BusyChanged" event which is raised when the controls starts loading data (for example for comboboxes, radiobuttons, checkboxes) and when loading completes.

The event provides a boolean parameter indicating if the loading starts or completes.

Example :


Code


form.GetControl("c_CascadingRadio").BusyChanged.AddHandler(function(busy) {
   var c = form.GetControl("c_LoadingIndicator");
   if (busy) c.SetValue("Loading...");
   else c.SetValue("Completed");
});