New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI DateTimePicker Modes

The DateTimePicker for .NET MAUI exposes PickerMode property of Telerik.Maui.Controls.PickerMode type which can be set to one of the following values:

  • Popup—Shows the UI for picking a date inside a popup. It's the default value for mobile (Android and iOS);
  • DropDown—Opens the UI for picking a date inside a drop-down. It's the default value for Desktop (Windows, macOS);

Here is a sample of PickerMode set to Popup:

<telerik:RadDateTimePicker Date="2020,05,15" 
                                PickerMode="Popup" />

Check below the result on mobile and desktop:

DateTimePicker Picker Mode

Quick example of PickerMode set to DropDown:

<telerik:RadDateTimePicker Date="2020,05,15" 
                            PickerMode="DropDown" />

Check the result of DropDown mode on mobile and desktop:

DateTimePicker Picker Mode

Toggle Button

In addition, DateTimePicker exposes IsToggleButtonVisible property which when set to True renders an "arrow" button for opening the UI for picking a date. By default, IsToggleButtonVisible is enabled for Desktop and is disabled for mobile platforms. You can explicitly apply it in both cases:

<telerik:RadDateTimePicker Date="2020,05,15"
                                PickerMode="DropDown"
                                IsToggleButtonVisible="True" />

See Also

In this article