Hello,
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.
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,
Michael
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); advancedTemplate.initialize(); 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,
Michael