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

AdvancedForm recurrence to Weekly by default

5 Answers 71 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chandu
Top achievements
Rank 1
Chandu asked on 25 Oct 2012, 11:05 AM
  1. In the New AdvancedForm.acsx page I need the following changes for the recurrence section:
    1. Default the recurrence to weekly
    2. Default the “end after __ occurrences” to 10
    3. 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

Sort by
0
Plamen
Telerik team
answered on 26 Oct 2012, 08:25 AM
Hi Chandu,

 
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.

Kind regards,
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
Chandu
Top achievements
Rank 1
answered on 31 Oct 2012, 10:12 AM
Hi Plamen,
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

0
Accepted
Plamen
Telerik team
answered on 01 Nov 2012, 02:16 PM
Hi,

 
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.

Regards,
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
Chandu
Top achievements
Rank 1
answered on 05 Nov 2012, 07:47 AM
Hi Plamen,
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 

 

 


0
Plamen
Telerik team
answered on 07 Nov 2012, 03:26 PM
Hello,

 
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.

Regards,
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.
Tags
Scheduler
Asked by
Chandu
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Chandu
Top achievements
Rank 1
Share this question
or