Hi All,
When itry to reload the scheduler, it’s gv me error scheduler.templates.xml_date is undefined:-
scheduler._init_event = function (a) {
a.reason = a.reason || a._tagvalue || “”;
a.start_date = a.start_date ? scheduler.templates.xml_date(a.start_date) : null;
a.end_date = a.end_date ? scheduler.templates.xml_date(a.end_date) : null
};
if("<%=ViewBag.Status%>"=="Next")
{
//Begin Section
//With this section or not both raised the above mentioned error
scheduler.config.xml_date = "%d/%m/%Y %H:%i";
scheduler.config.first_hour = 9;
scheduler.config.last_hour = 18;
scheduler.config.details_on_create = true;
scheduler.config.touch_drag = false;
scheduler.locale.labels.units_tab = 'leavetypes';
scheduler.locale.labels.section_attachSlip = "Attachment:";
scheduler.locale.labels.section_reason = "Reason:";
scheduler.locale.labels.section_leavetype_id = "Leave Type:";
scheduler.locale.labels.units0_tab = 'rel_id';
scheduler.locale.labels.section_rel_id = "Maternity:";
scheduler.locale.labels.units1_tab = 'rel_id2';
scheduler.locale.labels.section_rel_id2 = "Relationship:";
//end section
scheduler.clearAll()
scheduler.load("<%=Url.Content("~/LeaveTaken/Data")%>");
}
Please advise.
Thank you.
Regards,
Micheale