2 posts, 0 answers
  1. Vincent
    Vincent  avatar
    3 posts
    Member since:
    Oct 2011

    Posted 31 Oct 2012 Link to this post

    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.
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 02 Nov 2012 Link to this post

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