Scheduler get clicked date

2 posts, 0 answers
  1. Dương
    Dương avatar
    1 posts
    Member since:
    Oct 2016

    Posted 06 Oct 2016 Link to this post

    Hi, 
     Please can you tell my how I can access the appointment clicked date in a RadScheduler. It is not the Selected date, as this seems to be the same no matter what date I click. You would have thought that this was simple, but apparently not.

    Posted 11 Dec 2009Link to this post

     Hi, 
     Please can you tell my how I can access the appointment clicked date in a RadScheduler. It is not the Selected date, as this seems to be the same no matter what date I click. You would have thought that this was simple, but apparently not.
  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1249 posts

    Posted 10 Oct 2016 Link to this post

    Hello Dương,

    I am not sure what you mean by "clicked date", but you can get the clicked appointment's start and end dates by calling the respective SchedulerAppointment object client-side methods: get_start() or get_end(). For example in the OnClientAppointmentClick event handler you can do it as shown below:
    function OnClientAppointmentClick(sender, eventArgs)
    {
        var apt = eventArgs.get_appointment();
        alert(apt.get_start());
    }

    Regards,
    Ivan Danchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top