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

OnClientAppointmentInserting change default time for Month View

1 Answer 62 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rory
Top achievements
Rank 1
Rory asked on 27 Nov 2007, 08:07 PM
Hello,
I am using the RadScheduler and Inserting Appointments with a Custom Editor. I would like to control what is the Default Start time for eventArgs.get_StartTime() coming from the OnClientAppointmentInserting in Month View. Since there is no start time like in the Week or Day view the default becomes Midnight which doesn't go well with a Default View of Work Hours. So the end user has to update the Start time to a business hour  or the new appointment doesn't initialy show in the default work hours for Day and Week View. So is there a way to set this default time to 8am or a way to determine if the eventArgs are coming from MonthView.

 

function AppointmentInserting(sender, eventArgs)  
{  
    var start = formatDate(eventArgs.get_StartTime());  
    ShowEditForm("0",start);  
    eventArgs.set_cancel(true);  


 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Nov 2007, 02:14 PM
Hi Rory,

Please, find attached a demo project of the desired functionality. Default2.aspx shows how to insert appointment from MonthView with default start time 8 am. Default.aspx shows how to insert appointment on single click.

Let us know if you have any questions.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Rory
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or