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

Recurrence_rule format string

1 Answer 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rubihno
Top achievements
Rank 1
Rubihno asked on 25 Nov 2008, 03:33 PM
Hi, i have into a db the column recurrence_rule for the recurring appointment

Example:

DTSTART:20081124T090000Z
DTEND:20081124T100000Z
RRULE:FREQ=WEEKLY;UNTIL=20081227T000000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;WKST=MO

I would you like to convert this in a format standard

Example:

11/24/2007 3:30:00 PM
11/24/2007 5:30:00 PM
....

I try to view a example : http://www.telerik.com/help/aspnet-ajax/schedule_serversideworkingwithrecurringappointments.html

But i would you like to convert this recurrence_rule by database in radschedulerappointment_Created

My code:

  Dim oRicurrence As Label = CType(e.Container.FindControl("LbRecurrence"), Label)

        If e.Appointment.Attributes("Recurrence_rule") = "" Then

        Else

            Dim rule As HourlyRecurrenceRule = e.Appointment.Attributes("Recurrence_rule")

            For Each occurrence As DateTime In rule.Occurrences
                Console.WriteLine("" & Chr(9) & "{0}", occurrence)
           
Next

        End If

Is similar but  how i can to make the same example of (Working with Recurring Appointments) with a recurrence_rule column that is into db?





1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Nov 2008, 12:53 PM
Hi Rubihno,

This kb article might help get you started:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-display-all-radscheduler-appointments-in-gridview.aspx


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Rubihno
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or