The entering of values in datetime formitems is broken in 13 right now i think. You can't enter values properly, the cursor is stuck and it behaves strange in various other ways too. Just try my example below or try the 'various controls' or 'text masking' demos in the 'smartgwt-latest' showcase.
Code:
public void onModuleLoad() { Canvas.resizeControls(20); DynamicForm form = new DynamicForm(); form.setPadding(20); form.setNumCols(4); form.setFixedColWidths(true); form.setWrapItemTitles(false); form.setReadOnlyDisplay(ReadOnlyDisplayAppearance.DISABLED); DateTimeItem date1 = new DateTimeItem("test1", "Date field"); date1.setValue(new Date()); DateTimeItem date2 = new DateTimeItem("test2", "Another date field"); date2.setUseMask(true);//only difference between the 2 fields date2.setValue(new Date()); form.setFields(date1,date2); RootPanel.get().add(form); }
Comment