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

2 posts, 0 answers
  1. Milton
    Milton avatar
    6 posts
    Member since:
    Feb 2017

    Posted 16 Mar 2017 Link to this post

    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);
  2. Peter Milchev
    Admin
    Peter Milchev avatar
    467 posts

    Posted 21 Mar 2017 Link to this post

    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.
Back to Top