Web and Winform appointment recurrence

6 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 11 Mar 2010 Link to this post

    Hi,

    I have created a system in which I edit a recurrence from a web page but want to use a windows service to process the recurrences. 

    I have the web page creating a recurrence string as shown below:

    DTSTART:20100319T000000Z
    DTEND:20100319T000100Z
    RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=FR;WKST=MO

    I am then in the service using that string to generate the next date in the sequence, change the recurrence string and save back into the database.  In addition if the recurrence is of a finite count I need to decrease the count that is within the string.

    Other than manipulating my original string and saving that back into the database how do I do this?  The class structure is completely differnt to it's web counterpart which seems a little odd given that in theory the functionality should be the same.

    Regards,

    Jon



  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 16 Mar 2010 Link to this post

    Hi Jon,

    You can reference the Telerik.Web.UI assembly in your windows service and use the RecurrenceRule class to process the recurrences. You can parse recurrence rules using TryParse. Individual occurrences are available in the Occurrences collection. The ToString method converts the recurrence rule back to string.

    I hope this helps.

    Sincerely yours,
    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 16 Mar 2010 Link to this post

    Hi Tsvetomir,

    I did try that but an error came up and it sounded like an error indicating that the web component couldn't be used in a service app.

    I've got a work around going for the time being so will have a look at this in the future.

    Regards,

    Jon
  5. abhijit
    abhijit avatar
    13 posts
    Member since:
    Jul 2011

    Posted 15 Jul 2011 Link to this post

    hi jon,

    i am facing same problem.

    can you please tell me what work around you did.

    waiting for reply
  6. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 15 Jul 2011 Link to this post

    Hi,

    It was so long ago that I can't remember now I'm afraid, I think that I did some custom translation once reading it back in the service app.

    I remember that it was a royal pain in the backside.

    Good luck,

    Jon
  7. abhijit
    abhijit avatar
    13 posts
    Member since:
    Jul 2011

    Posted 15 Jul 2011 Link to this post

    hi jon,

    anyways thanks for quick reply
Back to Top
UI for WinForms is Visual Studio 2017 Ready