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

Clear date button inside datepicker

1 Answer 119 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 2
Fredrik asked on 20 Aug 2013, 07:25 AM
Hello!
I want to have a small x button inside the date control where the user can clear the current date entry.
(similar to the clearbutton on your maskedinput control)
how to achieve this with an mvvm structure?

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 20 Aug 2013, 01:08 PM
Hello Fredrik,

In order to achieve the desired scenario you would need to edit the DateTimePicker default Template and to insert a button inside which will clear the selected date. We have attached a sample project demonstrating the exact approach, please note that we are using Implicit Styles to style the DateTimePicker.

Hope this helps.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DatePicker
Asked by
Fredrik
Top achievements
Rank 2
Answers by
Kalin
Telerik team
Share this question
or