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

RadDatePicker Error

1 Answer 35 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 15 Oct 2009, 04:12 PM
In the current AJAX build (2009.2.826)

When using DateFormat if you only want the Month / Year after you make your first selection all others do not for an update.

Example
<telerik:RadDatePicker ID="rPubDate" runat="server" DateInput-DateFormat="MM/yyyy" />

The control only allows me to select the current month / year in this case "10/2009" any other date will not work. If I change the dateformat to MM/d/yyyy or MMM/yyyy it works fine.

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 20 Oct 2009, 07:23 AM
Hello Seth,

In order to achieve the desired functionality you should set only DisplayDateFormat property to MM/yyyy and the DateFormat property should not be set.
Please examine the code snippet bellow and see if it works as expected.
ASPX:
<telerik:RadDatePicker ID="rPubDate" runat="server">
           <DateInput DisplayDateFormat="MM/yyyy" runat="server">
           </DateInput>
       </telerik:RadDatePicker>

I hope this helps.

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Calendar
Asked by
Seth
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or