Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Events scheduled every other week appear incorrectly (Mediachase.AjaxCalendar 3.2.0.0)

Last post Mon, Jun 08 2009, 12:40 AM by ga. 1 replies.
Sort Posts: Previous Next
  •  Fri, Jun 05 2009, 3:57 PM 11026

    Events scheduled every other week appear incorrectly (Mediachase.AjaxCalendar 3.2.0.0)

    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}

    Hi,

     

    We are using Mediachase AJAX Calendar.NET (3.2.0.0). Our customer reported the following bug and this bug can be reproduced on your demo site too

       

    1. Go to demo site http://demo.mediachase.com/Calendar32/Default.aspx
    2. Create a new event on 6/26/2009
    3. Event Options are:
    - Repeat weekly,
    - Repeate every 2 week
    - Repeat on Friday
    - Start on 6/26/2009, Never End


    The dates appear on calendar are: 6/26/09, 7/3/09,7/17/09…

    The dates after 6/26 supposed to be 7/10/09, 7/24/09…


    Can anyone look into this problem?

     

    Thanks.

  •  Mon, Jun 08 2009, 12:40 AM 11031 in reply to 11026

    Re: Events scheduled every other week appear incorrectly (Mediachase.AjaxCalendar 3.2.0.0)

    Hi,
    to remove this issue find the following function in Recurrence.cs file of web-sample project:

    public ArrayList GetRecurrenceDates(DateTime sDate, DateTime eDate, DateTime itemStartDate)

    In this function find the following lines:

    if (Pattern == RecurrencePattern.Weekly)
    {
    wNum = GetRelativeWeekNumber(sDate, sd);

    And replace them to the following ones:

    if (Pattern == RecurrencePattern.Weekly)
    {
    wNum = GetRelativeWeekNumber(itemStartDate, sd);

    This should help.

    All source code provided in web-sample (including recurrence implementation) is just sample code. You can freely modify it. Also you can create your own recurrence patterns and implement them in your application.

View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems