Edit this page

Events

Here is more detailed information about the events exposed by the RadDateTimePicker control:

ParseDateTimeValue

The ParseDateTimeValue event is raised in the following cases:

  • On lost focus

  • When you select a value from the drop-down pane

  • When you type a character in the control's input box

The event handler receives two arguments:

Whenever you set the IsParsingSuccessful's value to False, the ErrorTooltip will appear. The Result value will be displayed in the TooltipContent appearing while you type in text in the control's input box.

See an example of having a custom parsing logic in your RadDateTimePicker control here.

SelectionChanged

The SelectionChanged event is raised in the following cases:

  • On lost focus

  • When you select a value from the drop-down pane

  • When you enter some text, which can be successfully parsed and hit the Enter key on your keyboard.

The text you enter in the input box can be successfully parsed any time except when you see the ErrorTooltip. Hitting Enter in this cases will set the RadDateTimePicker's SelectedValue property to the content visible in the Preview Tooltip.

The event handler receives two arguments:

  • The sender argument contains the RadDateTimePicker control.

  • A SelectionChangedEventArgs object.

DropDownClosed occurs each time the drop-down pane gets hidden. The event handler receives two arguments:

  • The sender argument contains the RadDateTimePicker control.

  • A RoutedEventArgs object

DropDownOpened occurs each time the drop-down pane gets shown. The event handler receives two arguments:

  • The sender argument contains the RadDateTimePicker control.

  • A RoutedEventArgs object

See Also

Was this article helpful? Yes No

Give article feedback

Tell us how we can improve this article

Dummy