With 5.1 I had a calendar with a customized calendarEditWindow With the 6.0p builds it is not working:
In the code that is commented out I would create a new Window() which is my customized CalendarEventWindow.
I have several issues:
1)In the week and day view, if you click anywhere in a blank date, nothing happens. Normally, the customized window should appear (in my testcase: "creating calendar edit window". I think this is because of the calendar.setCanDragCreateEvents(false);. If I remove it, it seems to work. But I don't want to create events of varying lengh. Only to click and open the new event window with the click.
2)If I create an event, it is not refreshed correctly in the week/day view.
Using smartgwt power 6.0-p20160512
Code:
public void onModuleLoad() { DataSource eventDS = new DataSource(); DataSourceSequenceField eventIdField = new DataSourceSequenceField("eventId"); eventIdField.setPrimaryKey(true); DataSourceTextField nameField = new DataSourceTextField("name"); DataSourceTextField descField = new DataSourceTextField("description"); DataSourceDateField startDateField = new DataSourceDateField("startDate"); DataSourceDateField endDateField = new DataSourceDateField("endDate"); eventDS.setFields(eventIdField, nameField, descField, startDateField, endDateField); eventDS.setClientOnly(true); eventDS.setTestData(CalendarData.getRecords()); Calendar calendar = new Calendar(); calendar.setShowWeekends(false); calendar.setShowWorkday(true); calendar.setScrollToWorkday(true); calendar.setDataSource(eventDS); calendar.setAutoFetchData(true); calendar.setShowWorkday(true); calendar.setScrollToWorkday(true); calendar.setCanResizeEvents(false); calendar.setCanDragCreateEvents(false); calendar.setShowQuickEventDialog(false); calendar.setEventEditorCustomizer(new EventEditorCustomizer() { @Override public boolean showEventEditor(final CalendarEvent calendarEvent, Boolean isNewEvent) { SC.say("creating calendar edit window"); //new CalendarWindow().show(); getCalendar().getEventDialog().hide(); return false; } }); calendar.draw(); }
I have several issues:
1)In the week and day view, if you click anywhere in a blank date, nothing happens. Normally, the customized window should appear (in my testcase: "creating calendar edit window". I think this is because of the calendar.setCanDragCreateEvents(false);. If I remove it, it seems to work. But I don't want to create events of varying lengh. Only to click and open the new event window with the click.
2)If I create an event, it is not refreshed correctly in the week/day view.
Using smartgwt power 6.0-p20160512
Comment