Hi,
in smartGWT 6.0 (from 05.04.) you can not reorder the timeLine lanes " calendar.setCanReorderLanes( true );" seems not to work.
Thanks and best regards
Andy
in smartGWT 6.0 (from 05.04.) you can not reorder the timeLine lanes " calendar.setCanReorderLanes( true );" seems not to work.
Thanks and best regards
Andy
Code:
calendar = new Timeline();
calendar.setShowEventDescriptions( true );
calendar.setShowQuickEventDialog( false );
calendar.setShowAddEventButton( false );
calendar.setCanCreateEvents( true );
calendar.setCanRemoveEvents( true );
calendar.setCanResizeEvents( false );
// Sets Hover
calendar.setHoverWidth( 500 );
// Activate weekends
calendar.setDisableWeekends( false );
calendar.setShowWeekends( true );
// 60min x 24h (Ignore Time)
calendar.setEventSnapGap( 1440 );
calendar.setEventAutoArrange( true );
// Can not move via drag & drop to another lane
calendar.setCanEditLane( false );
calendar.setCanReorderLanes( true );
calendar.setLaneEventPadding( 2 );
// Sets start and end date of calendar
// Sets Calendar Start Date
Date startDateCalendar = new Date();
CalendarUtil.addDaysToDate( startDateCalendar, -1 );
CalendarUtil.resetTime( startDateCalendar );
calendar.setStartDate( startDateCalendar );
// Sets Calendar End Date
Date endDateCalendar = new Date();
CalendarUtil.addDaysToDate( endDateCalendar, 30 );
CalendarUtil.resetTime( endDateCalendar );
calendar.setEndDate( endDateCalendar );
// Sets lane field (first Columns)
calendar.setLaneFields( new ListGridField[] { new ListGridField( "title", "Name", 350 ) } );
// Init Lanes
calendar.setLanes( getLanes() );
// Sets the indicators
calendar.setShowIndicators( false );
calendar.setIndicators( getIndicators() );
// Inits Calendar Header
initHeaderLevels();
// Sets the calendar dataSource
CAssignedShowPlaner dsClass = new CAssignedShowPlaner();
DataSource dataSource = dsClass.getDataSource( );
calendar.setDataSource( dataSource );
calendar.setAutoFetchData( true );
calendar.draw();
Comment