Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Reorder TimeLine lanes is broken

    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

    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();

    #2
    This has been fixed for builds dated April 9 and later.

    Comment


      #3
      Thanks... this is working again!!!

      Comment


        #4
        In latest build from 14.04. it does not work anymore

        Comment


          #5
          We're not seeing this against latest framework code, and nothing has changed that might affect this since the fix was put in.

          Comment


            #6
            Yeah sorry you are right... I guess I took the wrong build. I am sorry... thanks!!!

            Comment

            Working...
            X