Announcement

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

    Timeline canEditLane(false) not working

    Code:
    public void onModuleLoad() {
    
            VLayout vlayout = new VLayout();
            final Timeline calendar = new Timeline();
            calendar.setHeight(451);
            calendar.setStartDate(new Date(112, 5, 2));
            calendar.setEndDate(new Date(112, 5, 22));
            calendar.setCanEditLane(true);
            calendar.setShowEventDescriptions(false);
    
            HeaderLevel[] headerLevels = new HeaderLevel[] { new HeaderLevel(TimeUnit.WEEK),
                    new HeaderLevel(TimeUnit.DAY) };
            calendar.setHeaderLevels(headerLevels);
            calendar.setLaneFields(new ListGridField[] { new ListGridField("title", "Developer", 120) });
            calendar.setLanes(TimelineLaneData.getRecords());
            calendar.setData(TimelineData.getRecords());
            calendar.setCanEditLane(false);
    
            vlayout.addMember(calendar);
    
            IButton removeBtn = new IButton("Remove first lane");
    
            removeBtn.addClickHandler(new ClickHandler() {
    
                @Override
                public void onClick(ClickEvent event) {
                    calendar.removeLane(calendar.getLanes()[0]);
                }
            });
            vlayout.setWidth100();
            vlayout.setHeight100();
            vlayout.addMember(removeBtn);
            vlayout.draw();
        }
    If I try to drag an event to another lane, it is not possible, which is correct.
    But clicking on an event I see the lanes in a dropbox, and changing the lane there is possible.
    However, on the docs I read:
    Code:
    Can events be moved between lanes? If so, the event can be dragged to a different lane and, when it's editor is shown, an additional drop-down widget is provided allowing the user to select a different lane.
    Using smartgwt 6.0-p20160813 power

    #2
    This is fixed for builds dated August 19 and later.

    Comment


      #3
      ok thank you, this works now

      Comment

      Working...
      X