Hi There,
I'm using SmartGWT Pro 4.0 (Sep 1st 2013), and am having a problem with the ListGrid multiline cell wrapping feature, setWrapCells(true). It is not behaving correctly after the row is edited.
This can be easily reproduced by adding edit functionality to the Grid_Appearance_Multiline Showcase sample: (http://www.smartclient.com/smartgwt/showcase/#grid_appearance_multiline)
The experienced behaviour is:
1. Prior to editing the "background" field displays correctly with all text wrapping, and the cell expanding to accommodate all text.
2. The cell is edited by the user. The editor item displays correctly.
3. The editing is completed, and the cell returns to read-only mode. However the "background" field is displays on a single-line with a "..." at the end. The cell does expand as if to accommodate multiline text that is not displayed.
Thanks a lot for looking into this.
-Nick
I'm using SmartGWT Pro 4.0 (Sep 1st 2013), and am having a problem with the ListGrid multiline cell wrapping feature, setWrapCells(true). It is not behaving correctly after the row is edited.
This can be easily reproduced by adding edit functionality to the Grid_Appearance_Multiline Showcase sample: (http://www.smartclient.com/smartgwt/showcase/#grid_appearance_multiline)
Code:
ListGrid countryGrid = new ListGrid();
countryGrid.setWidth100();
countryGrid.setHeight100();
countryGrid.setShowAllRecords(true);
countryGrid.setWrapCells(true);
countryGrid.setCellHeight(56);
ListGridField nameField = new ListGridField("countryName", "Country", 120);
ListGridField backgroundField = new ListGridField("background", "Background");
ListGridField countryCodeField = new ListGridField("countryCode", "Flag", 50);
countryCodeField.setAlign(Alignment.CENTER);
countryCodeField.setType(ListGridFieldType.IMAGE);
countryCodeField.setImageSize(24);
countryCodeField.setImageURLPrefix("flags/24/");
countryCodeField.setImageURLSuffix(".png");
countryGrid.setFields(nameField, backgroundField, countryCodeField);
/* ADDED EDIT FUNCTIONALITY */
countryGrid.setCanEdit(true);
countryGrid.setEditEvent(ListGridEditEvent.CLICK);
/***************************/
countryGrid.setData(CountrySampleData.getRecords());
countryGrid.draw();
1. Prior to editing the "background" field displays correctly with all text wrapping, and the cell expanding to accommodate all text.
2. The cell is edited by the user. The editor item displays correctly.
3. The editing is completed, and the cell returns to read-only mode. However the "background" field is displays on a single-line with a "..." at the end. The cell does expand as if to accommodate multiline text that is not displayed.
Thanks a lot for looking into this.
-Nick