Hi Deepa,
We've managed to track down the issue down to the advanced form initialization code in the example. The template object is not recreated after an AJAX update. Here's the fixed code (changes in bold):
// Dictionary containing the advanced template client object
// for a given RadScheduler instance (the control ID is used as key).
var
schedulerTemplates = {};
function
schedulerFormCreated(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;
// Remove the template object from the dictionary on dispose.
scheduler.add_disposing(
function
() {
schedulerTemplates[templateKey] =
null
;
});
}
// 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);
}
}
}
All the best,
Peter
the Telerik team