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

Issue with RadCalendar : date changes automatically

1 Answer 11 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Yann
Top achievements
Rank 1
Yann asked on 11 Jul 2019, 01:08 PM

Hello,

I have an issue with RadCalendar : when the focus is in the textbox with the date and time and I press Enter, the day and the month automatically switch. For exemple, if the date is 11/07/2019 and I press Enter, the date changes to 07/11/2019. If I press Enter again, it switch back to 11/07/2019.
But, if the date is 25/07/2019, it don't change to 07/25/2019 (because this date is not valid).

 

Here's the code I'm using :

<asp:UpdatePanel ID="UpdatePanel10" runat="server" UpdateMode="Conditional">
  <ContentTemplate>
    <telerik:RadDateTimePicker ID="DateDebut" runat="server" OnSelectedDateChanged="DateDebut_SelectedDateChanged" AutoPostBackControl="Both">
    </telerik:RadDateTimePicker>
  </ContentTemplate>
  <Triggers>
    <asp:AsyncPostBackTrigger ControlID="btnPrev" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="btnNext" EventName="Click" />
  </Triggers>
</asp:UpdatePanel><br>

 

I don't understand what is appening, if someone can please help me, it would be very kind.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 16 Jul 2019, 11:41 AM
Hi Yann,

There are 2 possible reasons why this may happen:

1. JavaScript error. You can try disabling the AJAX to check that:
https://www.telerik.com/support/kb/aspnet-ajax/ajaxmanager/details/get-more-descriptive-errors-by-disabling-ajax

2. Culture formatting. You may have a different culture setting. You can try setting the format properties of the control to resolve that:
<telerik:RadDateTimePicker ... >
    <DateInput runat="server" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy">
    </DateInput>
</telerik:RadDateTimePicker>

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Calendar
Asked by
Yann
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or