The items from the folder 1 must have blocked all the days before 2014-11-01 and the items from the folder 2 must have blocked all the days before 2014-10-01.
I tried with an iterative call to this function:
[code]function bloqueja_passat(date, folderId) {
var t = data.split(/[- :]/);
var dateBlock = new Date(t[0], t[1]-1, t[2]);
The code was bad, I used it with indicating the itemId in the sections property, like that:
function bloqueja_passat(date, folderId) {
var t = data.split(/[- :]/);
var dateBlock = new Date(t[0], t[1]-1, t[2]);
scheduler.addMarkedTimespan({
start_date: new Date(1900,1,1),
end_date: dateBlock,
zones: "fullday",
css: "bloquejat",
type: "dhx_time_block",
sections: {
timeline_week: itemId,
timeline_day: itemrId
}
});
}
In addition to the question about the slowness of this function, I’d like to ask if it is possible to block all the items inside a folder, indicating only the folder:
function bloqueja_passat(date, folderId) {
var t = data.split(/[- :]/);
var dateBlock = new Date(t[0], t[1]-1, t[2]);
scheduler.addMarkedTimespan({
start_date: new Date(1900,1,1),
end_date: dateBlock,
zones: "fullday",
css: "bloquejat",
type: "dhx_time_block",
sections: {
timeline_week: folderId,
timeline_day: folderId
}
});
}
Hi,
currently there are some known performance issues regarding a big marked timespans.
What can be done in order to block and highlight the past dates - is to dinamically add a marked timespan for the visible area.