Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by fabian on Oct 06, 2009 00:18
open dhtmlx forum
Different colors in scheduler

Hi,

Is it possible that any user have a different color on his appointments?

Look like this:
scheduler.templates.event_class=function(start,end,event)
         {
             if (start < (new Date()))
             return "past_event";
         }


thanks, Fabian
Answer posted by Stanislav (support) on Oct 06, 2009 01:27
You can provide a userID as parameter of the event, and configure event_class template to assign different classes for events of different users
You can check 
         samples\customization\shared_events\
inside the scheduler's package. It implements the similar use-case.