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

Setting the Recurrence Checkbox

4 Answers 89 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 31 Jan 2011, 03:31 PM
Never mind.

-- 
Dim of Grantham.

4 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 31 Jan 2011, 03:59 PM
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.
0
Stuart Hemming
Top achievements
Rank 2
answered on 31 Jan 2011, 04:01 PM
Thanks veronica.

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

Ta.

-- 
Stuart
0
Hanso
Top achievements
Rank 1
answered on 30 Sep 2011, 02:53 AM
> 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

     }

}

0
Peter
Telerik team
answered on 04 Oct 2011, 10:35 AM
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
Tags
Scheduler
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Stuart Hemming
Top achievements
Rank 2
Hanso
Top achievements
Rank 1
Peter
Telerik team
Share this question
or