Clientside advanced forms (reloading form data)

3 posts, 0 answers
  1. Michael
    Michael avatar
    7 posts
    Member since:
    Mar 2011

    Posted 23 Mar 2011 Link to this post


    I am using the scheduler in a project with a webservice and a custom dbschedulerprovider (all working very nicely).

    I am now making a custom advanced form to handle the appointment data.  My problem is that I need to reload the controls on my form as the data loaded (in the combo boxes) changes in relation to which appointment has been opened.

    I have been looking at the OnClientFormCreated event for a way to do this.  This is what is in the example.

    function OnClientFormCreated(scheduler, eventArgs) {
                   // Create a client-side object only for the advanced templates
                   var mode = eventArgs.get_mode();
                   if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
                       mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
                       // Initialize the client-side object for the advanced form
                       var formElement = eventArgs.get_formElement();
                       var templateKey = scheduler.get_id() + "_" + mode;
                       var advancedTemplate = schedulerTemplates[templateKey];
                       if (!advancedTemplate) {
                           // Initialize the template for this RadScheduler instance
                           // and cache it in the schedulerTemplates dictionary
                           var schedulerElement = scheduler.get_element();
                           var isModal = scheduler.get_advancedFormSettings().modal;
                           advancedTemplate = new window.SchedulerAdvancedTemplate(schedulerElement, formElement, isModal);
                           schedulerTemplates[templateKey] = advancedTemplate;
                       // Are we using Web Service data binding?
                       if (!scheduler.get_webServiceSettings().get_isEmpty()) {
                           // Populate the form with the appointment data
                           var apt = eventArgs.get_appointment();
                           var isInsert = mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert;
                           var editSeries = eventArgs.get_editingRecurringSeries();
                           advancedTemplate.populate(apt, isInsert, editSeries);

    I would be grateful if you could direct me to more detailed information regarding this or any examples that demonstrate my required functionality.

    Best Regards,
  2. Michael
    Michael avatar
    7 posts
    Member since:
    Mar 2011
  3. Veronica
    Veronica avatar
    1213 posts

    Posted 26 Mar 2011 Link to this post

    Hi Michael,

    Yes, this help article can point you for how to replace the advanced edit form. Please feel free to ask me if you have further questions.

    Best wishes,
    Veronica Milcheva
    the Telerik team
Back to Top