DaysOfWeekMask property of RecurrencePattern

2 posts, 0 answers
  1. shruti
    shruti avatar
    3 posts
    Member since:
    Jun 2010

    Posted 21 May 2012 Link to this post


    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.

  2. Ivana
    Ivana avatar
    657 posts

    Posted 22 May 2012 Link to this post

    Hi Shruti,

    The following documentation explains how to achieve the desired functionality: (see the examples provided).

    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.
Back to Top