I am running RHEL with SmartGWTEE 3.0 NB 20120516. I am using the Nested ListGrid. I have a date column and a Document Type column among other columns as part of the listgrid among other fields. The date column I want formatted to shortdate and I have the following code
The method called is implemented as follows:
Then for the document type field I have a multiple select datasource for it. When I create the listgrid as a normal listgrid, then the select item shows up and the date shows up in proper format. When I add the line
The formatting disappears and so does the select item. The date shows up including microseconds, which I don't want and the select item for the document type completely disappears.
Code:
ListGridField dateField = theListGrid.getField(DATE_CREATED); setColumnDateSelectorFormat(dateField, DateDisplayFormat.TOUSSHORTDATETIME);
Code:
public void setColumnDateSelecetorFormat(ListGridField dateField, DateDisplayFormat format) { MiniDateRangeItem datePicker = new MiniDateRangeItem(); datePicker.setDateDisplayFormat(format); dateField.setFilterEditortype(datePicker); }
Code:
theAvailableReportsListGrid.setCanExpandRecords(true);
Comment