PDA

View Full Version : [OPEN] DateField/DatePicker in menu not working



spanners
29 Feb 2016, 7:02 AM
Hi,

I have a DateField inside a panel that displays from a menu. In GXT 2 this arrangement worked fine, but I am unable to get it to work in GXT 4.What happens is that when you click to select from the DatePicker, the menu immediately closes and the date value is not selected. My panel has several fields on it and I don't want the menu panel to close when a date is selected.

This simplified code shows the problem...


SimpleContainer container = new SimpleContainer();
DateField dateField = new DateField();
FieldLabel label = new FieldLabel(dateField, "My Date");
container.add(label);
Menu menu = new Menu();
menu.add(container);
MenuBarItem menuBarItem = new MenuBarItem("Kipper", menu);
MenuBar menuBar = new MenuBar();
menuBar.add(menuBarItem);

Thanks for any assistance anyone can offer...

branflake2267
29 Feb 2016, 6:14 PM
Thanks for the test. I see the issue, but not sure how to solve it yet. I'll get back with more soon.

spanners
12 Mar 2016, 12:49 AM
Hi branflake,

Were you able to make any progress on solving this issue?

Thanks.

branflake2267
23 Mar 2016, 4:32 AM
Engineering hasn't gotten to it yet. If you need a workaround, file a support ticket, bugs don't cost anything, and I can see if there are options around the issue and send that to you.

Thanks,
Brandon