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

Update certain columns of the resources

Asked by Anonymous
3 years ago.

Hi,
I'm using the scheduler as a time report board, where the users can report their absences or working time on projects. After entering, changing or deleting a time amount in any day, the total will be calculated per each project or absence type and then the total for all projects or absences will be calculated too. Both totals will be shown in a column of a resource. Please see also the attached screenshot.

Theses totals are calculated in the event onEventEdited. I update the resources by calling this method:

this.scheduler.control.update({ resources: this.resources });

This call leads to a poor performance, because I'm updating all resources and it seems that this leads to a new complete rendering of the scheduler.

So my question is, if there is a way to update just certain columns of the resources. The resources stay always the same. I don't add or remove any resource during the calculation of these totals.

Best regards

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

1. You can update a single row using rows.update():
https://api.daypilot.org/daypilot-scheduler-rows-update/

2. It's also possible to change HTML of a specific row header column directly using DayPilot.Rows.columns().html().
https://api.daypilot.org/daypilot-row-column/

However, I don't recommend using the direct access unless absolutely necessary as it bypasses the data/view synchronization mechanism.

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