Styling event description

Hello,

I am trying to display event description italicized under certain condition. What is the best way to do this?

Hi @c9482,

You can specify the condition in the event_text template. I.e.

scheduler.templates.event_text = function(start, end, event){ 
    if(condition)
        return "<span style='font-style: italic'>" + event.text + "</span>"; 

    else
        return event.text; 
}

Hi Polina,

Thank you for the hint. Does this also apply to ASP.NET version of the product? Many thanks in advance.

@c9482

Yes, here is this template in the scheduler .Net documentation. Please check:
http://scheduler-net.com/docs/dhxscheduler.templates.html