The following error bubbles up when I click the "more..." link on the month view of the RadScheduler.
Where in the code do I need to look to fix the format?
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
0
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
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
What do you mean by localization setting?
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
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
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?
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
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
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.