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

Recurrance Editor with database

3 Answers 49 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 09 Dec 2012, 04:15 AM
My goal is to allow the user to create a schedule of when they want their recurring reports emailed to them. I'd like to use the Recurrance Editor without the RadScheduler but still need to store the schedule in my database. This is so it can be read by my windows service which checks the schedule from the database, creates the report, and does the emailing.

Is it possible to store the user's schedule in the database with only using the Recurrance Editor? If so, please show me how. Please also show me how to retreive it from the database and translate what it returns. I'll be checking if the schedule date is older than the current date.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 11 Dec 2012, 09:01 AM
Hi Randy,

 
You can refer to this two articles where is explained how to populate the Recurrence editor and how to read the Recurrence rule.

Hope these will be helpful.

All the best,
Plamen
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.
0
Randy
Top achievements
Rank 1
answered on 29 Dec 2012, 06:12 AM
This is a start but the examples still leave alot unanswered. Am I correct in assuming that based on what's selected in the recurrance editor, I have to (along with a few other lines of code) call either recurrenceEditor.RecurrenceRule = new DailyRecurrenceRule(interval, range), or recurrenceEditor.RecurrenceRule = new HourlyRecurrenceRule(interval, range), or recurrenceEditor.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range) or recurrenceEditor.RecurrenceRule = new MonthlyRecurrenceRule(dayOrdinal, interval, range), or recurrenceEditor.RecurrenceRule = new YearlyRecurrenceRule(month, dayOrdinal, range)?

If so, how do I capture which one (daily, hourly, weekly, mothly, or yearly) has been selected?
0
Boyan Dimitrov
Telerik team
answered on 03 Jan 2013, 09:35 AM
Hello,

Please find attached a sample project that demonstrates how you can retrieve the recurrence rule that was generated by the recurrence editor based on user selection. For the sample purposes I added to the page a button that populates a label control with that recurrence rule frequency. This way when a user is ready with configuring  recurrence editor and clicks the button the generated recurrence rule is accessible in the code behind and ready to be stored in the data base. The generated rule is not human readable so you can parse it or use that help article that shows how you can use the recurrence rule object.

Kind regards,
Boyan Dimitrov
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.
Tags
Scheduler
Asked by
Randy
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Randy
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or