search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Recurrences - Is there a way to dynamically/programmatically set the repeat until value?

Asked by mrplatypus
1 year ago.

Hi Dan and Team,

Is there a way to dynamically/programmatically set the repeat until value?

Please advise.

Thanks

Dave

Answer posted by Dan Letecky [DayPilot]
1 year ago.

You can do it by calling Until() method on the RecurrenceRule instance. It can be either a new new instance:

RecurrenceRule r1 = RecurrenceRule.FromDateTime("1", start).Weekly().Until(DateTime.Today.AddMonths(2));

Or you can modify a deserialized instance this way:

RecurrenceRule r1 = RecurrenceRule.Decode("MQ==#2#C#U#2016-12-31T00:00:00#VyAxLDMsNSAqLzQ=").Until(DateTime.Today.AddMonths(2));
Comment posted by mrplatypus
1 year ago.

Thanks for the feedback ..

However, I don't think that you understand me or I'm not being clear enough..

Where within the standard example setup can I set the value so that the users can't change it?
Are we looking at writing some javascript to set the value or are there other possibilities?

Thanks,

Dave

This question is more than 6 months old and has been closed. Please create a new question if you have anything to add.