I have a list of time ie (10:45,11:20,13:50,15:20) and i have a list of section id’s too . how can i block the time slots mentioned above with respective to the section_id’ s .
please provide a sample code which demonstrate above task .
Hello,
check the ‘sections’ property of a marked timespan config
docs.dhtmlx.com/scheduler/api__s … espan.html
docs.dhtmlx.com/scheduler/sample … units.html
Hi,
by using
scheduler._props["unit"].size = 10;
we can limit the units ,
but how can I show only specified section at a time ?
eg: show section with section_id= 2 .
I have tried this
scheduler._props["unit"].size = 1;
var arr = new Array();
var obj = {
key: intSectionId,
label: strDoctor
};
var objMap = {
1: 0
};
arr.push(obj);
scheduler._props["unit"].options = arr;
scheduler._props["unit"].order = objMap;
scheduler.updateView();
But its displaying all events in a single section
Please suggest me regarding this …
Thanks
Hello,
make sure you setting skip_incorrect property of units view, otherwise events from skipped sections will fallback to the first displayed one
docs.dhtmlx.com/scheduler/api__s … sview.html
As for dynamically changing list of options, try using scheduler.serverList/updateCollection methods, instead of changing internal values:
docs.dhtmlx.com/scheduler/api__s … ction.html
Hi,
Thanks , it worked like a charm