Get selected start time and end time

2 posts, 0 answers
  1. Mind
    Mind avatar
    3 posts
    Member since:
    May 2012

    Posted 13 Jun Link to this post



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



  2. Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 16 Jun Link to this post

    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.

    Ivan Danchev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top