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

Weekview disable passed dates

2 Answers 74 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 2
Markus asked on 18 Nov 2010, 03:22 PM
Hi there

How do I prevent the user to enter appointments in a weekview for times that have already past?

I don't want the user to be able to enter appointments prior to date.time.now.

How do I go about it. Is it possible to color the passt times in a weekview differently.?

Regards Markus

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 18 Nov 2010, 03:33 PM
Hello Markus Berchtold,

Please take a look at this KB article for "Setting special days or time slots in RadScheduler".

Feel free to ask me if you have further questions.

Greetings,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jumpstart 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
Markus
Top achievements
Rank 2
answered on 18 Nov 2010, 05:27 PM

Dear Veronica

Exactely what I needed with a little amendment

Protected Sub RadScheduler1_TimeSlotCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.TimeSlotCreatedEventArgs) Handles RadScheduler1.TimeSlotCreated
      If e.TimeSlot.End < Date.Now Then
          e.TimeSlot.CssClass = "Disabled"
      End If
      If e.TimeSlot.Start > Date.Now.AddDays(14) Then
          e.TimeSlot.CssClass = "Disabled"
      End If
        
  End Sub

Thanks a whole heap.

Markus
Tags
Scheduler
Asked by
Markus
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Markus
Top achievements
Rank 2
Share this question
or