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

6 posts, 0 answers
  1. Pavel
    Pavel avatar
    7 posts
    Member since:
    Feb 2012

    Posted 19 Aug 2014 Link to this post

    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?
  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 21 Aug 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pavel
    Pavel avatar
    7 posts
    Member since:
    Feb 2012

    Posted 23 Sep 2014 in reply to Bozhidar Link to this post

    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?
  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 24 Sep 2014 Link to this post

    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.

     
  6. Pavel
    Pavel avatar
    7 posts
    Member since:
    Feb 2012

    Posted 25 Sep 2014 Link to this post

    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?
  7. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 26 Sep 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017