AdvancedForm recurrence to Weekly by default

6 posts, 1 answers
  1. Chandu
    Chandu avatar
    10 posts
    Member since:
    Oct 2012

    Posted 25 Oct 2012 Link to this post

    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

     

  2. Plamen
    Admin
    Plamen avatar
    2954 posts

    Posted 26 Oct 2012 Link to this post

    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.
  3. Chandu
    Chandu avatar
    10 posts
    Member since:
    Oct 2012

    Posted 31 Oct 2012 Link to this post

    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

  4. Answer
    Plamen
    Admin
    Plamen avatar
    2954 posts

    Posted 01 Nov 2012 Link to this post

    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.
  5. Chandu
    Chandu avatar
    10 posts
    Member since:
    Oct 2012

    Posted 05 Nov 2012 Link to this post

    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 

     

     


  6. Plamen
    Admin
    Plamen avatar
    2954 posts

    Posted 07 Nov 2012 Link to this post

    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.
Back to Top