Scheduler reload from client side

Hi All!

Does anybody know if there is any way to force scheduler reload from js? So situation is next: I got popup where I create period that will be closed for editing in scheduler, then I save it to DB and now need to reload scheduler to apply that new closed period

By reloading scheduler do you mean data reloading of reapplying some settings ?

//Data reloading scheduler.clearAll(); scheduler.load("some.php");

I mean reapplying some settings like closed periods

I was trying to do it next way using js

scheduler.addMarkedTimespan({
start_date: new Date($(’#createClosureForm’).find(‘input[id=“startDate”]’).val()),
end_date : new Date($(’#createClosureForm’).find(‘input[id=“endDate”]’).val()),
zones: “fullday”,
css: “gray_section”,
type: “dhx_time_block”
});
scheduler.updateView();

but this doesn’t work also…

Hi Anton,
Make sure that start/end dates of .addMarkedTimespan config are valid. Marked timespans should be displayed after you call .updateView