RecurrenceRule occurrences

4 posts, 0 answers
  1. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 06 Nov 2015 Link to this post

    Using winforms scheduler and would like to get the listing of occurrences from the rrule.

                    Dim hrly As Telerik.WinControls.UI.HourlyRecurrenceRule = Me.Appointment.RecurrenceRule

    The webforms version has an occurrences property, but not the winforms version. I wold like to do something like this.

      For Each occurrence As DateTime In hrly.Occurrences

    Console.WriteLine("" & Chr(9) & "{0}", occurrence)

    Next

    Any ideas

    Later

    Art.

     
  2. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 06 Nov 2015 in reply to Art Link to this post

    Code example in VB please.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 07 Nov 2015 Link to this post

    BTW, how does this work

                    Dim dtfi As DateTimeFormatInfo = CultureInfo.GetCultureInfo("en-US").DateTimeFormat
                    myDate = Me.Appointment.RecurrenceRule.GetOccurrenceStart(1, Now.Date, dtfi)

    DTSTART:20151110T010000  DTEND:20151110T020000  RRULE:FREQ=WEEKLY;COUNT=6;BYDAY=SA;WKST=SU

    This returns the start date plus the index number of days. That's useless. If the index is greater then the count, it returns a date. What am I missing here?

     

    Later

    Art

  5. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 10 Nov 2015 Link to this post

    Hello Art,

    Thank you for writing.

    In order to get the occurrences, it is necessary to use the Occurrences property or the GetOccurrences method of the Appointment class. You can find additional information on this topic on the following link: http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-working-with-recurring-appointments.html

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top