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

Get selected start time and end time

1 Answer 69 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mind
Top achievements
Rank 1
Mind asked on 13 Jun 2016, 11:20 AM

Hello,

 

Is there a way to get selected start and end dates after selecting in TimeSlot?

 

thanks

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 16 Jun 2016, 05:45 AM
Hello Mind,

You would be able to get the selected appointment's Start and End dates if you subscribe to the Scheduler's OnClientAppointmentClick client-side event (OnClientAppointmentClick="OnClientAppointmentClick") and in its handler call the appointment's get_start() and get_end() methods:
function OnClientAppointmentClick(sender, eventArgs) {
    var apt = eventArgs.get_appointment();
    alert("Start: " + apt.get_start() + " End:" + apt.get_end());
}

You can find more methods of the SchedulerAppointment object in the following documentation article.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler
Asked by
Mind
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or