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

Getting an error when clicking the "more..." link in the month view, date format issue

5 Answers 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Pavel
Top achievements
Rank 1
Pavel asked on 19 Aug 2014, 08:56 PM
The following error bubbles up when I click the "more..." link on the month view of the RadScheduler.

The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar

Where in the code do I need to look to fix the format?

5 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 21 Aug 2014, 07:43 AM
Hi,

Could you share the declaration of the Scheduler, and any customizations you've done to it, so that we can take a closer look at the issue. It would be also useful to share your localization settings in the environment that you are testing the Scheduler, for instance the date format.

Regards,
Bozhidar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Pavel
Top achievements
Rank 1
answered on 23 Sep 2014, 02:43 PM
I apologize for taking forever to reply.
Here's the declaration

<telerik:RadScheduler
EnableEmbeddedSkins="false"
runat="server"
ID="RadScheduler1"
OnClientFormCreated="schedulerFormCreated"
StartEditingInAdvancedForm="true"
StartInsertingInAdvancedForm="true"
SelectedDate="2012-12-01"
DayStartTime="00:00:00"
CssClass="rsCategoryRed"
AdvancedForm-DateFormat="dd/MM/yyyy"
DataDescriptionField="Description"
DataKeyField="EventId"
DataStartField="StartDate"
DataEndField="EndDate"
DataSubjectField="Subject"
OverflowBehavior="Expand"
SelectedView="MonthView"
Width="100%"
AllowEdit="false"
enableajax="true"
OnAppointmentCommand="RadScheduler1_AppointmentCommand"
AllowInsert="false"
AllowDelete="false"
OnAppointmentCreated="RadScheduler1_OnAppointmentCreated"
CustomAttributeNames="ClientEventId, Subject, MABDiscussionType">

What do you mean by localization setting?
0
Bozhidar
Telerik team
answered on 24 Sep 2014, 07:24 AM
Hi,

You can find the Localization settings if you type "Region and Language" in your start menu searchbox. From there you can click "Additional Settings". I've attached a screenshot to illustrate.

Does the issue occur in our online demos:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/month-view/defaultcs.aspx

If the issue is only present in your code, could you extract a runnable sample page that we can run locally, in order to troubleshoot the problem?

Regards,
Bozhidar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Pavel
Top achievements
Rank 1
answered on 25 Sep 2014, 02:12 PM
My localization settings are the same as yours http://i.imgur.com/c6cbenA.png

Extracting the code at this point would take a huge amount of effort, since I am not the original author and it's very convoluted.

But, I did notice something that might be causing a problem. When I look at the request body (using the developer tools) in notice this
__EVENTARGUMENT={"Command":"SwitchToSelectedDay","StartDate":"201400220008"}

The StartDate is in a weird format. Where could that be getting set?
0
Bozhidar
Telerik team
answered on 26 Sep 2014, 10:53 AM
Hi,

From the looks of it that is the cause of the issue. In order to determine why the value is in this format, could you share the exact steps and actions which lead to this command being send, as well as the setup of the Scheduler (for instance WebService bound scheduler and error appears when I click the "Today" button inside the header).

Regards,
Bozhidar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
Pavel
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Pavel
Top achievements
Rank 1
Share this question
or