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

WeekQuarterDay

Asked by Greg
13 years ago.

Hello *

i wanted to implement a new Zoom called "WeekQuarterDay". So that you can see one day divided in 4 cells (0- 6; 6 - 12; 12-18;18-24).

Almost everythink seems to be fine..but I got one problem:

The weekdays have almost the same color as the weekend. But it's a very strange order of colors.

For example if thisis the calendar:

THURS . FRIDAY SAT. SUN.

1 1 1 1 22 2 2 3 3 3 3 44 4 4

O O W O O O W O O O O O OO O O

Where "O" stands for the color: orange and "W" for the color: white

Here the most important code parts.

Additional: I implemented a WeekHalfDay Function which works without any color problems of weekdays.

if (DayPilotScheduler1.CellDuration == 360)
{
outStart = e.Start.AddDays(-2);//new DateTime(e.Start.Year, 1, 1);
outDays = 62;// DateTime.IsLeapYear(e.Start.Year) ? 366 : 365;
inDays = 14;
zoomIn = Zoom.Day;
zoomOut = Zoom.WeekHalfDay;
}

case Zoom.WeekQuarterDay:
DayPilotScheduler1.CellDuration = 360;
DayPilotScheduler1.CellGroupBy = GroupByEnum.Week;
DayPilotScheduler1.CellWidth = 35;

Whats about the:

outStart, outDays, inDays? Can you please explain to me?

Thank you all in advance.

Greetings

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