Visible only the year

4 posts, 0 answers
  1. sam Aryan
    sam Aryan avatar
    24 posts
    Member since:
    Feb 2010

    Posted 06 Aug 2010 Link to this post

    Hi there,

    I just want to visible the year only. I don't want to show the rest of them. I can see there is a property that you can show only the year ( DisplayMode="DecadeView" )  But when i click on the year i want the calendar close i don't want the calendar show me the month. basically i want the month and day hidden.

    thanks
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 10 Aug 2010 Link to this post

    Hi sam Aryan,

    Thank you for contacting us.

    With Q2 2010 release we introduces a new control - DateTimePicker. With it you can achieve the desired behaviour. First, you need to set its InputMode property to DatePicker and then set the DateSelectionMode property to Year.

    If you have further questions please let us know.

    Kind regards,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. sam Aryan
    sam Aryan avatar
    24 posts
    Member since:
    Feb 2010

    Posted 10 Aug 2010 Link to this post

    Hi There,

    Thank you for your reply. it work fine but there is something if i wanna pick only the year i don't want to show the month and day on the field after when you close the calendar.

    thanks
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Aug 2010 Link to this post

    Hi sam Aryan,

    To customize the format of the date in the TextBox of the DateTimePicker control you can set its Culture property to fit your requirements.

    Let us know if you need further assistance.

    All the best,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top