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

DaysOfWeekMask property of RecurrencePattern

1 Answer 108 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
shruti
Top achievements
Rank 1
shruti asked on 21 May 2012, 10:22 AM
Hi,

I have been trying to use the DaysOfWeekMask property of RecurrencePattern.
I have to map the values from the database to the DaysOfWeekMask property.
suppose if i have selected Pattern frequency as Weekly
> it occurs ever 'Monday and Friday', then i am saving the value in database as 'Monday | Friday'
> it occurs ever 'Monday, Thursday, Friday', then i am saving the value in database as 'Monday | Thursday | Friday'
and many more such cases
but how can i map these values to DaysOfWeekMask,as DaysOfWeekMask accepts only values of type

 

RecurrenceDay and not the string or int

 

 

.
I know that we can assign multiple days using pipeline operator, but it is not feasible to write all the conditions in that case. So, please suggest some efficient and easy way to assign some string or integer based value to DaysOfWeekMask property.

Please revert asap.
Regards

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 22 May 2012, 12:02 PM
Hi Shruti,

The following documentation explains how to achieve the desired functionality:
http://www.telerik.com/help/aspnet-ajax/t_telerik_web_ui_recurrenceday.html (see the examples provided).

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
shruti
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or