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

Overlap checking for recurrence rule

2 Answers 89 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
CH
Top achievements
Rank 1
CH asked on 13 Nov 2011, 04:51 PM
Hi

I saved the appointment info into database, include start date, end date, recurrence rule and recurrence parent id etc. My question is how can I do overlap checking for the appointment with recurrence rule in database? Because recurentce rule is a long text include all information about date range.

And I also got two minor UI issues in Sharepoint 2010 environment.
1) When I try to add a new appointment, and click save button without any inputs in the popup window, I got error message which said I have to input appointment subject, then I input something into the subject textbox, and click save button again, but nothing happened.
I followed this link http://www.telerik.com/community/forums/aspnet-ajax/scheduler/radschedule-issue-with-updatepanel-in-sharepoint-2010.aspx to solve the js error about popup window, but here is a new one.
2) The radscheduler control obscured the dropdown menu in sharepoint 2010, please check attached screenshot.


Please advice, Thanks

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 14 Nov 2011, 12:07 PM
Hello chuin hun,

Please set z-index in the below class as per your menu z-index or set z-index of your frop down menu.

.RadScheduler .rsHeader
       {
           z-index:****   !important;
       }

Note : after set the z-index. don't forget to check Datepicker popup UI is not damaged.

Thanks,
Jayesh Goyani
0
Ivana
Telerik team
answered on 16 Nov 2011, 03:43 PM
Hello chuin hun,

To make a server-side check for an appointment, whether it is a recurring appointment or not, you could use the RecurrenceState property of an Appointment, as in the code-block below:
protected void RadScheduler1_AppointmentClick(object sender, SchedulerEventArgs e)
{
    if (e.Appointment.RecurrenceState == Telerik.Web.UI.RecurrenceState.NotRecurring)
    {
        //The appointment is not recurring.
    }
    if (e.Appointment.RecurrenceState == Telerik.Web.UI.RecurrenceState.Occurrence
        && e.Appointment.RecurrenceState == Telerik.Web.UI.RecurrenceState.Master)
    {
        //The appointment is recurring.
    }
    if (e.Appointment.RecurrenceState == Telerik.Web.UI.RecurrenceState.Exception)
    {
        //When changes are made upon a recurring appointment, it becomes exception.
    }
}

Regarding the SharePoint related issues:
1. Could you please paste here the text of the error that you receive?
2. You can try increasing the z-index of the menu by adding this style in the head section of the master page that you use:
ms-MenuUIPopupBody
{
   z-index: 5000 !important;
}

Best wishes,
Ivana
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
CH
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Ivana
Telerik team
Share this question
or