Hi,
I have several questions about the scheduler mobile.
1°) When i want to configure, i’m oblige to write the code on the outside of any method while i would like configure the scheduler before his initilization inside a methods named InitScheduler() for example. I tried different ways but its don’t work
2°) Moreover i use a custom form for adding or editing event. I would like populate dynamically a selec control but i’m obliged to configure the scheduler before the method call…
to summarize, I would like :
create a function that I can call when I want.
[code]function initScheduler() {
/**************************************************/
/Here configure ! but it doesn’t work !!!/
/*************************************************/
scheduler.config.init_date = new Date();
scheduler.config.form = eval("["
+ “{ view: “text”, id: ‘text’, label: “Nom”, name: ‘text’ },”
+ “{ view: “select”, id: “form_select”, css: “test”, type:“round”, options: [”
+ “]”
+ “},”
+ “{ view: “datepicker”, id: ‘start_date’, label: “Start”, timeSelect: 1, dateFormat: scheduler.config.form_date },”
+ “{ view: “datepicker”, id: ‘end_date’, label: “End”, timeSelect: 1, dateFormat: scheduler.config.form_date },”
+ “{ view: “textarea”, id: ‘details’, label: “Description”, width: 300, height: 150 },”
+ “]”);
/*/
/*Here populate + "{ view: “select”, id: “form_select” */
//
How to populate select?
/**************************************************/
/Here load scheduler ! it work !!!/
/*************************************************/
dhx.ready(function () {
dhx.ui({
view: “scheduler”,
id: “scheduler”,
scroll: true,
container: “divScheduler”
});
dhx.i18n.fullDateFormat = "%d-%m-%Y %H:%i";
dhx.i18n.setLocale();
$$("scheduler").load("", "scheduler");
$$('scheduler').$$('month').show();
$$('scheduler').$$('buttons').setValue('month');
$$("scheduler").$setSize(contentWidth, contentHeight - OFFSET_HEIGHT);
});
}[/code]
I don’t know what to do and I turn around to configure, populate the list, and initialize the scheduler.
thank you for your advice…