RecurrenceEditor Loses Exceptions On PostBack?

2 posts, 0 answers
  1. Ben
    Ben avatar
    55 posts
    Member since:
    Jan 2006

    Posted 24 Feb 2014 Link to this post

    Am I forgetting to do something here? 

    I tried two difference methods:

    Method 1:
    ---------------------
    I retrieve my record from the DB
    I place the string from my loaded record into the RecurrenceEditor's RecurrenceRuleText field
    I make changes to other areas of my record (I do not touch the RecurrenceEditor)
    I save my record again...
    I find that the RecurrenceEditor's .RecurrenceRuleText field no longer holds "Exceptions", they have been erased

    Method 2:
    ---------------------
    I retrieve my record from the DB
    I load the RecurenceRuleText into a RecurrenceRule object.
    I place the RecurrenceRule object into the RecurrenceEditor's RecurrenceRule field
    I make changes to other areas of my record (I do not touch the RecurrenceEditor)
    I save my record again...
    I find that the RecurrenceEditor's .RecurrenceRule field no longer holds "Exceptions", they have been erased
  2. Ben
    Ben avatar
    55 posts
    Member since:
    Jan 2006

    Posted 24 Feb 2014 in reply to Ben Link to this post

    Well, I ended up just loading the original RecurrenceRule, and then adding back the "lost" exceptions before I resaved the record.

    It's a bandaid, but it works.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top