Hi guys,
Is there a way of loading block time in the server??
I want to do a calendar where the events I have in the database is shown as block time.
I manage to load events in the server.
In the server I have this:
SchedulerConnector c = new SchedulerConnector(conn, DBType.MSSQL);
c.event.attach(new BasicBehavior(c));
//configures the used table and fields
c.render_table("event", "idEvent", "start_date, end_date, text");
In the client I have
scheduler.load("connectors/basic");
var dp = new dataProcessor("connectors/basic");
dp.init(scheduler);
Is there a way to do scheduler.addMarkedTime(“connectors/basic”) or something similar??
Thank u very much! This forum is a great help
Hi,
there is no built-in way to load timespans configuration from the server. You can load the configuration from the server via AJAX, parse it and add to the scheduler using addMarkedTimespan method
Can you give further instructions on how to do this by chance?
Hi,
please clarify what kind of instructions do you need.
The method addMarkedTimespan (which can be used to add blocked time to scheduler), takes a plain JS object as an argument.
You can load such objects from the server via AJAX - on server side you can load block-time data from the database, form the array of items and pass it to the client as a JSON. On the client-side you’ll need to parse the loaded items, add them to the scheduler using addMarkedTimespan, and refresh calendar in order to display added time blocks
docs.dhtmlx.com/scheduler/api__s … espan.html
docs.dhtmlx.com/scheduler/api__s … tview.html