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

    Hello,

     

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

     

    thanks

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    832 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.

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top