search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Update .timeHeaders doesn't work (with scheduler).

Asked by Joe
6 years ago.

Hello,

Based on the documentation I should be able to alter any properties of the scheduler. I would like to have a toggle button which with I can change the time headers between Months :: Days and Months :: Weeks.

However if I execute the following line on the console nothing seems to happen:
dp.update({timeHeaders : [{groupBy: "Month", format: "MMMM yyyy"}, {groupBy: "Week"}]});

Tried to initiate the scheduler with this timeHeader also and it worked fine so guess that update should work with this parameter.

Thanks in advance

Answer posted by Dan Letecky [DayPilot]
6 years ago.

In the MVC version, the time headers are generated on the server side and it's not possible to switch the view without calling the server.

You can request an update using commandCallBack() method which invokes OnCommand server-side event handler:
https://doc.daypilot.org/scheduler/commandcallback/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.