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

setting cellBackColor after init doesn't work

Asked by Rob Franken
10 years ago.

When i set the cellBackColor after i called init it doesn't work, (and yes i do call update after the dp.cellBackColor = "#FF0000";)

Comment posted by Dan Letecky [DayPilot]
10 years ago.

Rob,

Are you using cssOnly = true?

In the CssOnly mode cellBackColor is ignored and you should use the css theme or onBeforeCellRender to change the cell color.

Comment posted by Rob Franken
10 years ago.

I use cssOnly = false

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

This issue is fixed now in build 7.7.698 (see the sandbox):

http://javascript.daypilot.org/sandbox/

Comment posted by Rob Franken
10 years ago.

I executed the script below in the debug console of my browsers (FF 27 beta, Chrome 32 and IE9) when visiting the sandbox and it doesn't seem to work.

dp.cssOnly = false;
dp.update(); // Css drops and raw styling on elements appears
dp.cellBackColor = "#FF0000";
dp.update(); // Only cells that are 'new' will get the red color (so when no scrolling was done before the cells after June 2013 in the sample

Comment posted by Dan Letecky [DayPilot]
10 years ago.

The already-rendered values were cached. Build 7.7.700 should fix that as well.

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