Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DatePicker > How to show year only

Not answered How to show year only

Feed from this thread
  • Yang avatar

    Posted on Sep 19, 2011 (permalink)

    Hi,

    I am using DateTimePicker in GridView whith MVVM pattern.

    <

     

     

    telerik:RadDateTimePicker InputMode="DatePicker" DisplayFormat="Short" DateSelectionMode="Year" DisplayDateStart="1990/01/01" SelectedValue="{Binding Year, Mode=TwoWay}"/>

    My DateSelectionMode is Year, so I can only choose year. But I need to only show year after selection.
    Please check the image. The text 1/1/2001 is not what I want. I just want 2001.
    Is this possible done using MVVM? I checked forum. It seems that solution can only be done using code behind. Also, the DateTimePicker is in GridView.

    Thanks

     

    Attached files

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Sep 21, 2011 (permalink)

    Hi Yang,

    In order to achieve this you will need to implement custom parsing. You can find more information how to do this in this help article.

    Hope this information is helpful.

    Regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DatePicker > How to show year only
Related resources for "How to show year only"

Silverlight DatePicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]