PDF Export & custom task coloring

I’m specifying custom task coloring in my controller as specified on this page:
docs.dhtmlx.com/gantt/desktop__c … tasks.html

My Controller JSON feed looks kind of like this:

[code]
var jsonData = new
{
data = (
from t in Tasks
select new
{
id = t.GanttTaskId,
text = t.Text,
start_date = t.StartDate.ToString(“u”),
duration = t.Duration,
progress = 1,
open = true,
parent = t.ParentId,
color = t.Color //Color set depending on the task
}).ToArray()
};

        return new JsonResult { Data = jsonData, JsonRequestBehavior = JsonRequestBehavior.AllowGet };[/code]

So this makes each task have the gantt-task-inline-color class and each task has its background color set on that individual task. Works great!

My problem is trying to use the PDF Export functionality. All my task background coloring is lost. I’ve seen around the forum here that it’s possible to send your own CSS stylesheets in the Header line for PDF Export, but I don’t see how that will help me. I’m not setting classes on my tasks -the background colors are not being applied via classes in this method.

How should I be going about getting the PDF Export to pick up my task styling in this case?

Fixed.
Just refresh your app, the export file will include colors defined through “color” property.

Awesome! Just tested it out and it works great! Thank you! :smiley: