Setting the Recurrence Checkbox

5 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 31 Jan 2011 Link to this post

    Never mind.

    -- 
    Dim of Grantham.
  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 31 Jan 2011 Link to this post

    Hi Stuart Hemming,

    Internally the checked state of the Recurrence checkBox is determined by the RecurrenceRule. If the RecurrenceRule is null (e.g. the appointments is not a recurring one) - the checkbox will be unchecked. Otherwise the checkbox must be checked.

    Please let me know if you have further questions.

    All the best,
    Veronica Milcheva
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 31 Jan 2011 Link to this post

    Thanks veronica.

    I'd just discovered that for myself. :-)

    Ta.

    -- 
    Stuart
  5. Hanso
    Hanso  avatar
    4 posts
    Member since:
    Sep 2011

    Posted 29 Sep 2011 Link to this post

    > If the RecurrenceRule is null (e.g. the appointments is not a recurring one) - the checkbox will be unchecked. Otherwise the checkbox must be checked."

    In Telerik.Web.UI (version 2011.1.413.35), this is not correct. Even if the checkbox is ticked, the RecurrenceRule is still null. The only time, the RecurrenceRule is populated is when a Frequency radio button has been selected. So the way to access the checkbox, as our team lead suggested, was to manually find the checkbox control within the RecurrenceEditor container and then access it's value. Example shown below in C#:
    //NOTE: "RecurrentAppointment" is the internal name of the checkbox in the RecurrenceEditor 
    CheckBox cbRecurrentAppointment = (CheckBox)ffRecurrenceEditor.FindControl("RecurrentAppointment"); 

     

    if (cbRecurrentAppointment != null)

    {

        if (cbRecurrentAppointment.Checked)

        {

             //do something

         }

    }

  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 04 Oct 2011 Link to this post

    Hello Hanso,

    We have fixed a few bugs with the recurrence editor lately. So, please test with the latest version and let me know if you still experience any issues.

    All the best, Peter
    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
UI for ASP.NET Ajax is Ready for VS 2017