Hi,
I'am trying GWT Pro 12.1 released February 05, 2021. In production I'm using GWT Pro 12.0.
I have a timeline with Hours (1 day) Resolution but the resolution does not work correctly, the hour starts from 12:00 and not 00:00. In version 12.0 the problem does not exist
How I can fix it?
I include here an example.
Thanks a lot
I'am trying GWT Pro 12.1 released February 05, 2021. In production I'm using GWT Pro 12.0.
I have a timeline with Hours (1 day) Resolution but the resolution does not work correctly, the hour starts from 12:00 and not 00:00. In version 12.0 the problem does not exist
How I can fix it?
I include here an example.
Thanks a lot
public class TimelineGroupingSample extends VLayout{
public void build(){
HeaderLevel[] headerLevels = new HeaderLevel[] { new HeaderLevel(TimeUnit.DAY), new HeaderLevel(TimeUnit.HOUR) };
// grouping fields must be specified as laneFields, but can be hidden as is done here
ListGridField groupField = new ListGridField("devGroup");
groupField.setHidden(true);
ListGridField[] laneFields = new ListGridField[]{
new ListGridField("title", "Developer", 120),
groupField
};
Timeline calendar = new Timeline();
calendar.setHeight(551);
calendar.setShowEventDescriptions(false);
calendar.setEventSnapGap(60);
calendar.setLaneEventPadding(2); // add a little space around events
calendar.setStartDate(RelativeDateItem.getAbsoluteDate(RelativeDate.TODAY));
calendar.setCanCreateEvents(true);
// grouping settings
calendar.setCanGroupLanes(true);
calendar.setLaneGroupByField("devGroup");
calendar.setLaneFields(laneFields);
// set up the grid
calendar.setHeaderLevels(headerLevels);
calendar.setResolution(headerLevels, TimeUnit.HOUR, 24, null );
calendar.setLanes(TimelineLaneData.getRecords());
calendar.setData(TimelineData.getRecords());
addMembers(calendar);
}
public void build(){
HeaderLevel[] headerLevels = new HeaderLevel[] { new HeaderLevel(TimeUnit.DAY), new HeaderLevel(TimeUnit.HOUR) };
// grouping fields must be specified as laneFields, but can be hidden as is done here
ListGridField groupField = new ListGridField("devGroup");
groupField.setHidden(true);
ListGridField[] laneFields = new ListGridField[]{
new ListGridField("title", "Developer", 120),
groupField
};
Timeline calendar = new Timeline();
calendar.setHeight(551);
calendar.setShowEventDescriptions(false);
calendar.setEventSnapGap(60);
calendar.setLaneEventPadding(2); // add a little space around events
calendar.setStartDate(RelativeDateItem.getAbsoluteDate(RelativeDate.TODAY));
calendar.setCanCreateEvents(true);
// grouping settings
calendar.setCanGroupLanes(true);
calendar.setLaneGroupByField("devGroup");
calendar.setLaneFields(laneFields);
// set up the grid
calendar.setHeaderLevels(headerLevels);
calendar.setResolution(headerLevels, TimeUnit.HOUR, 24, null );
calendar.setLanes(TimelineLaneData.getRecords());
calendar.setData(TimelineData.getRecords());
addMembers(calendar);
}
Comment