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

Recurrence End Date or Occurrences, how do I get them?

3 Answers 170 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 06 Feb 2014, 09:33 PM
I'm working with the  RadSchedulerRecurrenceEditor and trying to determine how to access the No End Date, End after, or End By values at the bottom of the control. I've seen the "help" (in quotes because it's hardly helpful) article that discusses reading the text and go thru some god awful mess to eventually split, trim, format, wipe, and by next week you might have the value process. The Pattern otpitons are accessible by properties, so I have got to believe that the Recurrence end values are accessible by properties. Does anyone out there have some insite on getting these values?

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 07 Feb 2014, 08:12 AM
Hello Benjamin,

Thank you for your feedback.

In case you are trying to get the value from the server side you can use the RecurrenceRule.Range properties to get the values of the end Date fields as in the code below:

<telerik:RadSchedulerRecurrenceEditor runat="server" id="RadSchedulerRecurrenceEditor1"></telerik:RadSchedulerRecurrenceEditor>
    <telerik:RadButton runat="server" ID="RadButton1" OnClick="RadButton1_Click"></telerik:RadButton>

protected void RadButton1_Click(object sender, EventArgs e)
 {
     Response.Write(RadSchedulerRecurrenceEditor1.RecurrenceRule.Range.RecursUntil + "<br/>");
     Response.Write(RadSchedulerRecurrenceEditor1.RecurrenceRule.Range.MaxOccurrences + "<br/>");
 }

Please let me know if your scenario is somehow different.


Regards,
Plamen
Telerik
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 UI for ASP.NET AJAX, subscribe to the blog feed now.
0
puneet
Top achievements
Rank 1
answered on 08 Apr 2015, 01:13 PM

I am using the RadSchedulerRecurrenceEditor to run my task for different-different frequency options: Hourly,Weekly,Monthly,Yearly etc.

I would like to know about the max no of occurences for every frequency types.

0
Plamen
Telerik team
answered on 09 Apr 2015, 05:09 AM
Hello,

The max number of occurrences is controlled by the MaximumRecurrenceCandidates property of RadScheduler that is set to 3000 by default.

Hope this will help you solve the issue. 

Regards,
Plamen
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Scheduler
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Plamen
Telerik team
puneet
Top achievements
Rank 1
Share this question
or