How to display just month and day

2 posts, 0 answers
  1. Audrey
    Audrey avatar
    1 posts
    Member since:
    Jun 2013

    Posted 04 Jun 2013 Link to this post

    Is there a property to make the DatePicker display just month and day?
    I try  DateSelectionMode="Month" ,but year can still selected.
    wish your help,thk

  2. Kalin
    Kalin avatar
    1360 posts

    Posted 07 Jun 2013 Link to this post

    Hi Audrey,

    The desired behavior could be achieved through RadCalendar control which is part of RadDateTimePicker. As you don't have direct access to the Calendar ( because it is placed in a popup), you should customize the template of the DateTimePicker and edit the Calendar inside. You need to subscribe to the DisplayModeChanged event of the Calendar and to disable the YearView in its handler.

    Please see the attached sample project for a reference. In it we've used Implicit Styles to style the DateTimePicker as this makes such customizations easier.

    Hope this helps.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top