RecurrenceRule occurrences

4 posts, 0 answers
  1. Art
    Art avatar
    55 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)


    Any ideas



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

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

    Code example in VB please.
  3. Art
    Art avatar
    55 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?




  4. Dess
    Dess avatar
    2183 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:

    I hope this information helps. Should you have further questions I would be glad to help.
    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