Clear date button inside datepicker

2 posts, 0 answers
  1. Fredrik
    Fredrik avatar
    58 posts
    Member since:
    Mar 2013

    Posted 20 Aug 2013 Link to this post

    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?
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 20 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top