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

Css class removed after expanding resource group

Asked by Marco
6 years ago.

I'm adding a css class to a row by calling row.addClass() function in javascript.
This works like a charm but when I expand the row (by clicking the +-icon) the css class is removed by the scheduler.

Why is this and how can I prevent this?

I'm running version 2018.3.3417

Any help is much appreciated.

Comment posted by Marco
6 years ago.

I can't edit the original question but I found out that css class is not removed by expanding the resource group, it's removed when calling Scheduler.update().

Still I wonder why this is and how this can be avoided.

Thanks

Comment posted by Marco
6 years ago.

bump

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

The CSS class added using addClass() is now persisted to DayPilot.Scheduler.resources[].cssClass and it will survive update() calls. It's implemented in the latest sandbox build (2018.4.3445):

https://javascript.daypilot.org/sandbox/

Comment posted by Marco
6 years ago.

Thanks for your reply Dan.

Hopefully this fix will be released in a stable version soon.

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