Hi!
I'm trying to migrate from SmartGWT 3.0 to 4.1. I migrated my code to 4.1, and found a strange behaviour in Calendar widget. I'd like to emphasize that my 3.0 code is in production and working normally, and I didn't change anything, just made a new project with 4.1 and deployed to the same environment.
1) Handling background click
I have a custom handler and a custom DynamicForm for adding new event.
The difference in 4.1 is that my handler gets invoked after I click on the background, but NOT when I drag the mouse as I want a longer duration of my event, which was not the case in 3.0.
How I can catch dragging in 4.1?
2) Wrong times in startDate and endDate
When I drag events or try to add/edit events, the CalendarEvent that I receive in my handler has wrong startDate and endDate!
The dates I get have the right date and the wrong time: sometimes 1:00 a.m., sometimes 1:11 a.m., sometimes 1:22 a.m., but without any rule when specific value appears! Those datetimes totally confused me. I even tried to show the simplest Calendar class (from the showcase) and the behaviour is the same!
Environment: SmartGWT 4.1 (v9.1p_2014-03-23/EVAL Deployment), GWT 2.3.0, Firefox 26, Ubuntu 12.04 64-bit
I'm trying to migrate from SmartGWT 3.0 to 4.1. I migrated my code to 4.1, and found a strange behaviour in Calendar widget. I'd like to emphasize that my 3.0 code is in production and working normally, and I didn't change anything, just made a new project with 4.1 and deployed to the same environment.
1) Handling background click
I have a custom handler and a custom DynamicForm for adding new event.
Code:
addBackgroundClickHandler(new BackgroundClickHandler() { @Override public void onBackgroundClick(BackgroundClickEvent event) { event.cancel(); // show DynamicForm ... } });
How I can catch dragging in 4.1?
2) Wrong times in startDate and endDate
When I drag events or try to add/edit events, the CalendarEvent that I receive in my handler has wrong startDate and endDate!
The dates I get have the right date and the wrong time: sometimes 1:00 a.m., sometimes 1:11 a.m., sometimes 1:22 a.m., but without any rule when specific value appears! Those datetimes totally confused me. I even tried to show the simplest Calendar class (from the showcase) and the behaviour is the same!
Environment: SmartGWT 4.1 (v9.1p_2014-03-23/EVAL Deployment), GWT 2.3.0, Firefox 26, Ubuntu 12.04 64-bit
Comment