Hi,
I have two problems with using the DHTMLX Scheduler in a Webix Jet app.
I want to use the “Extensions” of the Scheduler like
webix.require(“scheduler/ext/dhtmlxscheduler_key_nav.js”);
but when I insert this line here (code taken from the webix admin app example):
{
view:"dhx-scheduler",
date:new Date(),
mode:"month",
tabs:["day","week", "month"],
init:function(){
webix.require("scheduler/ext/dhtmlxscheduler_key_nav.js");
//scheduler.config.month_day_min_height = 50;
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.first_hour = 7;
scheduler.config.last_hour = 24;
scheduler.config.multi_day = true;
scheduler.templates.event_class=function(s,e,ev){ return ev.calendar?"other":""; };
var d = scheduler.date.date_to_str;
var week1 = d("%d");
var week2 = d("%d %M %y");
scheduler.filter_day = scheduler.filter_week = scheduler.filter_month = function(id, event){
var calendar = event.calendar;
if(!calendar)
return $$("calendarList").getItem("my").active;
else
return $$("calendarList").getItem(calendar).active;
};
scheduler.templates.week_scale_date = d("%D, %W/%j");
scheduler.templates.week_date = function(d1,d2){
return week1(d1)+" – "+ week2(scheduler.date.add(d2,-1,"day"));
}
},
ready:function(){
if(addEvents){
addEvents();
addEvents = null;
}
}
}
I get the error: “Uncaught ReferenceError: Scheduler is not defined”.
Where can I load an extension like this? Is it anyway possible?
And the second problem is:
I want to add in the same Webix Jet App 2 Schedulers on different views with different events loaded via the dhtmlx scheduler connector. The first loads, I switch to the second and the second loads, but when I switch back to the first I see the events from the seconds and it stays like this. Do I have to destruct somewhere the scheduler? And if yes how?
Thank you!
Martin