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

Scheduler get clicked date

1 Answer 63 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dương
Top achievements
Rank 1
Dương asked on 06 Oct 2016, 07:46 AM
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.

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 10 Oct 2016, 10:24 AM
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.
Tags
Scheduler
Asked by
Dương
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or