Testcase:
Click the button to remove a lane. Nothing happens.
Using smartgwt 6.0-p20160804 power
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()); 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(); }
Using smartgwt 6.0-p20160804 power
Comment