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

Limiting the number of cocurrent appointments -> radalert windows

1 Answer 83 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rubihno
Top achievements
Rank 1
Rubihno asked on 24 Aug 2008, 04:48 PM
Hi,

How i can to insert a windows radalert into a limiting the number of concurrent appointment (RadScheduler) instead to labelerror?

When i insert a duplicate appointment don't have a labelerror but a radalert windows, is possible to make this?

Protected Function ExceedsLimit(ByVal apt As Appointment) As Boolean
            Dim appointmentsCount As Integer = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End).Count
            Return (appointmentsCount > (AppointmentsLimit - 1))
        End Function

        Protected Sub RadScheduler1_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs)
            If ExceedsLimit(e.Appointment) Then
                Label1.Text = "Another appointment exists in this time slot." <- radalert windows?
                e.Cancel = True
            End If
        End Sub


1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Aug 2008, 03:03 PM
Hi Rubihno,

I believe that the following KB article will be of help: (ID#673) Calling radalert from codebehind (all versions of RadWindow).



Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Rubihno
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or