Search
Picker.stateChanged Event
See Also
 






Raised when the control validation state is changed.

Namespace: MindFusion.Common.UI
File: Picker.js

 Syntax

JavaScript  Copy Code

EventDispatcher stateChanged

 Event Data

The event handler method receives the following arguments:
sender
A Picker instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A ValueChangedEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the stateChanged event of a DateTimePicker:

JavaScript  Copy Code

// Handle the stateChanged event.
dateTimePicker.stateChanged.addEventListener(handleStateChanged);

// This is the handler function of the stateChanged event
function handleDropDownShow(sender, args) {
  if(sender.state === u.ValidationState.Valid)
    {
      //do something
    }

}

 See Also