This is a migrated thread and some comments may be shown as answers.

DatePicker for touchscreen

1 Answer 30 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Koen
Top achievements
Rank 2
Koen asked on 17 Jul 2018, 02:19 PM

More in particular for selecting date of birth.

 

Is there an option available to show only years when opening the control.

After selecting a year we show the months and afterwards the days. After selecting the day, the final date of birth is filled in in the control.

This would avoid a lot of extra touch events for our users.

Could this work by switching the selection from year/mont/day between each selection. Can we avoid the popup from opening.closing every time?

Thank you for your support.

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 19 Jul 2018, 02:15 PM
Hello Koen,

The RadCalendar used inside the RadDatePicker has a DisplayMode property which you can set to DecadeView in this scenario to achieve the desired result. You can set this property via the CalendarStyle of the RadDatePicker, like so:

<Grid>
    <Grid.Resources>
        <Style x:Key="CaldendarStyle" TargetType="telerik:RadCalendar" BasedOn="{StaticResource RadCalendarStyle}">
            <Setter Property="DisplayMode" Value="DecadeView" />
        </Style>
    </Grid.Resources>
    <telerik:RadDatePicker CalendarStyle="{StaticResource CaldendarStyle}"/>
</Grid>

Please let me know if this works for you.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
DatePicker
Asked by
Koen
Top achievements
Rank 2
Answers by
Dilyan Traykov
Telerik team
Share this question
or