Why are the group header cells of a timeline returning a date ? I have a timeline which shows three weeks. I am coloring the weekends. So I have the following:
But inspecting the outputs, I see that the group title cells have the same date as the first date shown in the timeline. So these cells are being styled as the first day of the timeline.
I think this may be a bug, since it makes no sence that these cells are returning a date.
Using smartgwt 6.0p power 05.10.16
Code:
DateStyleCustomizer dateStyleCustomizer = new DateStyleCustomizer() { @Override public String getDateStyle(Date date, int rowNum, int colNum, CalendarView calendarView) { DateTimeFormat format = DateTimeFormat.getFormat("c"); SC.logWarn("Day: " + date); String dayOfWeek = format.format(date); /* Wochenende */ if (dayOfWeek.equals("0") || dayOfWeek.equals("6")) { return "calendarWeekend"; } return null; } }; calendar.setDateStyleCustomizer(dateStyleCustomizer);
I think this may be a bug, since it makes no sence that these cells are returning a date.
Using smartgwt 6.0p power 05.10.16
Comment