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

Go to an appointment by ID or object. (server side c#)

1 Answer 61 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Milton
Top achievements
Rank 1
Milton asked on 16 Mar 2017, 04:53 PM

I have a Scheduler populated with a set of data. It is set to display in day view and defaults to today.

On a button click I wish to jump to a particular appointment whilst remaining in day view and highlight it if possible.

So far I have managed to get an object of the appointment, however cannot find any functions on the scheduler itself to 'Go to' and appointment by either its object or its ID.

//Get correct appointment object.
Appointment appointment = RadScheduler1.Appointments.FindByID(1);
 
//What I want is to go to that appointment on the screen.
RadScheduler1.GoToAppointment(appointment);

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 21 Mar 2017, 12:33 PM
Hello Milton,

You can set the SelectedDate of the Scheduler in the button event handler as follows:

RadScheduler1.SelectedDate = appointment.Start;
Navigating to or highlighting the desired appointment would require custom implementation.

One option would be adding a CSS class to the appointment and then on pageLoad event on the client to scroll to the appointment. Here are some resources you might find useful:  

Regards, Peter Milchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
Milton
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or