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?
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