Hello,
I am using a ListGridField of type ListGridFieldType.DATETIME in a ListGrid. I would like the ListGrid to always show the editor, however it doesn't seem to work if the ListGridField is of type DATETIME. When the line is out of focus, the DateTime is displayed as a String which can't be formatted. Here is an example (the first record is out of focus):
Here is a sample of the code I used to create this ListGrid:
Moreover, I realized I obtain the same behavior if I define my own FormItem and set it up using reflection.
I am using SmartGWT version 12.0 with GWT 2.8.2 and java 11.
Best Regards
I am using a ListGridField of type ListGridFieldType.DATETIME in a ListGrid. I would like the ListGrid to always show the editor, however it doesn't seem to work if the ListGridField is of type DATETIME. When the line is out of focus, the DateTime is displayed as a String which can't be formatted. Here is an example (the first record is out of focus):
Here is a sample of the code I used to create this ListGrid:
Code:
ListGrid listGrid = new ListGrid(); listGrid.setAlwaysShowEditors(true); listGrid.setHeight(300); ListGridField testDateField = new ListGridField("testDateField", "Test DateTime Field", 200); testDateField.setType(ListGridFieldType.DATETIME); listGrid.setFields(testDateField); listGrid.addData(new ListGridRecord()); listGrid.addData(new ListGridRecord()); listGrid.setCanEdit(true); listGrid.draw();
I am using SmartGWT version 12.0 with GWT 2.8.2 and java 11.
Best Regards
Comment