Last Updated: 13 Jun 2023 23:13 by Neil
Created on: 03 May 2023 17:23
Category: Scheduler
Type: Feature Request
Option to programmatically select an appointment
At this stage, selecting an appointment is only possible when clicking on it. I'd like to have the ability to programmatically select an appointment.
1 comment
Posted on: 13 Jun 2023 23:13

you can achieve this by setting a @ref on the scheduler

add this to your scheduler components properties in markup


add this to your code:

 public TelerikScheduler<AppointmentDto> SchedulerRef { get; set; }


then you can hit the Scheduler_RemoveFocus method to clear previous focus



and you can set the target appointment based on it's index in the data source you are supplying to the scheduler

so, for instance if you want to highlight a newly added appointment you would use:


SchedulerRef.FocusedIndex = Appointments.Count();


hope this helps someone!