- In the New AdvancedForm.acsx page I need the following changes for the recurrence section:
- Default the recurrence to weekly
- Default the “end after __ occurrences” to 10
- Change the “end by” to default to 10 weeks later than the selected date
I am using :
<telerik:RadSchedulerRecurrenceEditor runat="server" ID="AppointmentRecurrenceEditor" Height="100%" Style="padding-left: 25px;" />
for Recurrences.
Can U please help in resolving the issue
Thanks in Advance,
Chandu
5 Answers, 1 is accepted
You can refer to this help topic where is explained how to populate the recurrence rule in similar scenarios in the FormCreated event.
Hope this will be helpful.
Plamen
the Telerik team

Thanks for your replay.
AS you said to refer help topic for my issue, I referred but
I am using AdvancedForm.acsx page for setting recurrance in .acsx page its a user control, and In help topic if I use: in aspx page to write the below code.
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
if (e.Container.Mode == SchedulerFormMode.AdvancedInsert)
{
RecurrenceEditor recurrenceEditor = e.Container.FindControl("AppointmentRecurrenceEditor") as RecurrenceEditor;
}
}
when I use I get Null reference as "AppointmentRecurrenceEditor" cannot be found from usercotrol.
Can U help me in solving this:
Thanks in Advance,
Chandu
In such case you should use the PageLoad event in the AdvancedForm.ascx code behind where you will be able to fins the RecurrenceEditor by its id.
Hope this will help you.
Plamen
the Telerik team

Thanks for your replay.
This is working for me...
I have one more Question.
Is there any possible way that we can set :
For RecurrenceRange both "MaxOccurrences" as well as "RecursUntil" to 10 weeks later from today's date.
range.MaxOccurrences = 10;
range.RecursUntil = 10 weeks;
When I do this only one option its taking either MaxOccurrences or RecursUntil or NoEndDate.
Thanks In advance.
Chandu.D
No this is not possible because as you see the Recurrence Editor allows choosing only one of this options from the radio button option at the bottom.
Hope this will explain the issue.
Plamen
the Telerik team