Hello Isomorphic,
please help me regarding following bug found in new autofit features:
GWT 2.1.1, SmartGWT 2.4 LGPL
GWT development mode
Windows 7, Firefox 3.6.3, IE 8.0
I expected the three fields to be fitted into the width of the ListGrid also if there is no record present in the grid. AutoFitWidthApproach.BOTH should then be using the title only. Instead, only fields fieldFirst and fieldLast are shown in the ListGrid both rendered in 100px width (see also attached screenshot). Changing the amount of fields and width of the ListGrid implies that in this case fields are always rendered using width 100px instead title width. Removing the setCan... calls produces even more strange result including horizontal scrollbar. Adding setUseAllRecords and setUseAllColumns does not have any effect on the result. Please can you help me or advice a workaround?
Thanks a lot!
~limubai
please help me regarding following bug found in new autofit features:
GWT 2.1.1, SmartGWT 2.4 LGPL
GWT development mode
Windows 7, Firefox 3.6.3, IE 8.0
Code:
ListGridField fieldFirst = new ListGridField("first", "First"); ListGridField fieldLast = new ListGridField("last", "Last"); ListGridField fieldProfession = new ListGridField("profession", "Profesion"); ListGrid listGrid = new ListGrid(); listGrid.setWidth(200); listGrid.setAutoFetchData(true); listGrid.setAutoFitData(Autofit.VERTICAL); listGrid.setSelectionType(SelectionStyle.SINGLE); listGrid.setCanSort(false); listGrid.setCanMultiSort(false); listGrid.setCanReorderFields(false); listGrid.setCanPickFields(false); listGrid.setCanFreezeFields(false); listGrid.setCanGroupBy(false); listGrid.setShowEmptyMessage(false); listGrid.setLeaveScrollbarGap(false); listGrid.setCanResizeFields(false); listGrid.setCanAutoFitFields(false); listGrid.setAlternateRecordStyles(true); listGrid.setAutoFitFieldWidths(true); listGrid.setAutoFitWidthApproach(AutoFitWidthApproach.BOTH); listGrid.setAutoFitFieldsFillViewport(true); listGrid.setAutoFitExpandField("lastName"); listGrid.setAutoFitClipFields("profession"); listGrid.setFields(fieldFirst, fieldLast, fieldProfession); listGrid.draw();
Thanks a lot!
~limubai
Comment