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

displaying hours in groups

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark Crouch
Top achievements
Rank 1
Mark Crouch asked on 19 May 2010, 11:04 PM
Hello all!
I need to group the hours displayed in WEEK view in blocks of 4 hours (8AM - 12, 12PM - 4PM, 4PM - 8PM, etc...) for each day, and preferably specify the height of the 4 hour blocks (I want to make the height of the 4 hour block smaller).

Then when a user clicks on a 4 hour block, an appointment is automatically created where there is no more input needed by the user (I can already specify the subject and description programmatically)...

Is any of this do-able?

Any and all help is appreciated.

Thanks.
Mark

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 May 2010, 01:26 PM
Hi Mark,

Grouping hours in Week view is not supported, but you can set conditionally different style for the time slots. Please, see this kb article on how to achieve this:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/setting-special-days-or-time-slots-in-radscheduler.aspx

The second requirement can be achieved using the client API and handling onClientTimeSlotClick as follows:

function onClientTimeSlotClick(sender, eventArgs)
{
var newAppointment = new Telerik.Web.UI.SchedulerAppointment();
  
var startTime = eventArgs.get_targetSlot().get_startTime();
  
var endTime = new Date(startTime);
endTime.setMinutes(endTime.getMinutes() + 45);
  
newAppointment.set_start(startTime);
newAppointment.set_end(endTime);
newAppointment.set_subject("Manually Inserted Appointment");
  
sender.insertAppointment(newAppointment);            
}


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
Mark Crouch
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or