Home Unanswered Active Tags New Question

Separator not accepting more than 2 arguments

Hi Dan,

I tried to use the Separator option explained in Daypilot scheduler http://www.daypilot.org/scheduler-separators.html. While coding for custom separation, it is taking only the day and color property.

But, i need opacity property too. When i code for opacity, it gives an error as "Daypilot Scheduler1 wont carry 5 arguments". Plz do revert me back in this issue as this is very important for me.

Asked by Vivek 6 months ago.
Replies

Please check for possible typos, the method is there and this example should work fine:

// Red separator with 50% opacity placed at the current day with width equal to CellWidth, shown above events
DayPilotScheduler1.Separators.Add(DateTime.Today, Color.Red, SeparatorLayer.AboveEvents, DayPilotScheduler1.CellWidth, 50);

You can also create the separator instance manually and then add it to the collection:

Separator s = new Separator();
s.Location = DateTime.Now;
s.Color = Color.Red;
s.Layer = SeparatorLayer.AboveEvents;
s.Opacity = 50;
s.Width = 20;
DayPilotScheduler1.Separators.Add(s);

Answer posted by Dan Letecky [DayPilot] 6 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java