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

RadScheduler

1 Answer 40 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 01 Nov 2012, 02:47 AM
I am using An Advance Form to insert and edit an Appointment using WebService for data binding. After the appointment is inserted, or edit, if the appointment time in not in the view, I want to move the scheduler to the appointment date. Is there a way to achieve this? Is there a way to attache a client side js function to an Update button of the Advance Form after the appointment is updated? Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 02 Nov 2012, 04:23 PM
Hello Vincent,

Thank you for contacting Telerik Support.

An easy and convenient way to achieve your first requirement would be to use:

var scheduler = $find('<%=RadScheduler1.ClientID %>');
var currentViewEndRange = scheduler.get_activeModel().get_visibleRangeEnd();
var currentViewStartRange = scheduler.get_activeModel().get_visibleRangeStart();
//if appointment start time is before currentViewStartRange  or after currentViewEndRange
scheduler.selectedDate() = appointment date
 
I would  recommend  you to attach custom JavaScript functions to Save button in case of using AdvancedEditForm following this CodeLibrary  or use client-side OnClientAppointmentEditing event.

Hope that this will lead you into right direction.

Kind regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Vincent
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or