Hi,
we are trying to bind the recurrence rule from javascript.
Upon saving , we are taking the recurrence rule from javascript and saving it to database. On taking the recurrence rule it is shown as "DTSTART:20120927T000000Z DTEND:20120927T000000Z RRULE:FREQ=WEEKLY;UNTIL=20120928T000000Z;INTERVAL=1;BYDAY=WE,SU;WKST=".
We are saving this value in db.
After that on the client form created we are taking the appointment details corresponding to this appointment id using one service call and we are getting the values in javascript.
After that we are trying to bind this value to controls.
So for binding recurrence rule we are using the below given code.
var
rrule = Telerik.Web.UI.RecurrenceRule.parse(apt1.get_recurrenceRule());
var
editor = $find(
"<%=AppointmentRecurrenceEditor.ClientID%>"
);
editor.set_recurrenceRule(rrule);
After that we tried like setting the rule as such in set method like
var
editor = $find(
"<%=AppointmentRecurrenceEditor.ClientID%>"
);
editor.set_recurrenceRule(
"DTSTART:20120927T000000Z DTEND:20120927T000000Z RRULE:FREQ=WEEKLY;UNTIL=20120928T000000Z;INTERVAL=1;BYDAY=WE,SU;WKST="
);
In this case we are getting an error like "TypeError: i.get_pattern is not a function".
Please advice us on how to proceed in this case..
Thanks.