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

Prevent adding appointments in views other than Day View

5 Answers 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael Malone
Top achievements
Rank 1
Michael Malone asked on 30 Sep 2010, 04:50 PM
Is there a way to enforce users to only add appointments when the SchedulerTimeViewType is set to DayView? I want them to be able to switch to other views but if they click on a day in MonthView for example, I would like it to redirect them to DaveView to create the actual appointment. I have disabled the TimePicker so clicking on MonthView doesn't allow them to set hourly fields.

5 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 05 Oct 2010, 02:20 PM
Hi Michael,

Please, set the AllowInsert property of RadScheduler conditionally from code like this:

protected void Page_Load(object sender, EventArgs e)
   {
       if (RadScheduler1.SelectedView == SchedulerViewType.DayView)
           RadScheduler1.AllowInsert = true;
       else
           RadScheduler1.AllowInsert = false;
   }
   protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
   {
       if (RadScheduler1.SelectedView == SchedulerViewType.DayView)
           RadScheduler1.AllowInsert = true;
       else
           RadScheduler1.AllowInsert = false;
   }


Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael Malone
Top achievements
Rank 1
answered on 06 Oct 2010, 03:44 PM
Thanks.... One other question. How can I redirect back to Day View when the user clicks on a day in MonthView?
0
Helen
Telerik team
answered on 11 Oct 2010, 10:52 AM
Hi Michael,

RadScheduler automatically redirects to the day view when you click on date in the month view. Please find attached a video which illustrates this.

Are we missing something?

Regards,
Helen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael Malone
Top achievements
Rank 1
answered on 14 Oct 2010, 03:42 PM
Hmmmm, why is the video in SFW format? I can't open it. Could you post it in a less proprietary format? 
0
Peter
Telerik team
answered on 14 Oct 2010, 03:58 PM

http://screencast.com/t/ofpMrDQzbbVV

Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Michael Malone
Top achievements
Rank 1
Answers by
Peter
Telerik team
Michael Malone
Top achievements
Rank 1
Helen
Telerik team
Share this question
or