This is a migrated thread and some comments may be shown as answers.

RecurrenceRule occurrences

3 Answers 91 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Art
Top achievements
Rank 1
Art asked on 07 Nov 2015, 05:18 AM

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.

 

3 Answers, 1 is accepted

Sort by
0
Art
Top achievements
Rank 1
answered on 07 Nov 2015, 05:19 AM
Code example in VB please.
0
Art
Top achievements
Rank 1
answered on 07 Nov 2015, 08:03 PM

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

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 10 Nov 2015, 02:20 PM
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
Tags
Scheduler and Reminder
Asked by
Art
Top achievements
Rank 1
Answers by
Art
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or