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

Using RecurrencePatternHelper in Ajax

1 Answer 51 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Swadesh Brojolall
Top achievements
Rank 1
Swadesh Brojolall asked on 18 May 2010, 08:16 AM
Hi, I have the following error.
I  am customizing the RadScheduler control and am now at the part where I need to read a recurrence string and transform this in a recurre nce using recurrencepatternhelper and then using the patternhelper to set the appropriatye controls on my custom appointment radwindow.

When I try using
        Dim serializedPattern As String = "FREQ=DAILY;COUNT=10;INTERVAL=3;BYDAY=MO,TU,WE,TH,FR"
        Dim pattern As RecurrencePattern
        RecurrencePatternHelper.TryParseRecurrencePattern(serializedPattern, pattern)

I get the error saying that I sould have system.component model version 2.0.5.0 to be able to use RecurrencePatternHelper.

I have included the Telerik.Windows.Controls.Scheduler.ICalendar namespace and the System.ComponentModel namespace and am also implementing the INotifyPropertyChanged interface in the class.

Any idea what I am doing wrong and how I can solve this error. Thank you!



1 Answer, 1 is accepted

Sort by
0
Swadesh Brojolall
Top achievements
Rank 1
answered on 18 May 2010, 08:47 AM
Sorry, I got it . I should use  RecurrenceRule.TryParse instead of PatternHelper.

Silly me!


Tags
Scheduler
Asked by
Swadesh Brojolall
Top achievements
Rank 1
Answers by
Swadesh Brojolall
Top achievements
Rank 1
Share this question
or