Firefox 24,
<gwtVersion>2.6.1</gwtVersion>
<smartgwtVersion>5.0-p20141210</smartgwtVersion>
Hi,
I have a ListGrid component that is contained in a SectionStackSection, and I grouped it by a field that is contained in a hidden field.
I also use the group summary to show some data in the header of each group element.
My problem is that when there are data in my grid, the first column containing the group elements is badly resized and its content does not entirely appear (Te... au lieu de Test1).
Moreover, the grid does not fill the entire space that is allocated to it. I mean that I can resize columns to get my expected interface, but it's not directly as I want it to be.
Current display :
 
Expected Display :
 
I already found some elements that answer a little bit my question here but I'm still wondering if there is really no way to display correctly the grid.
 
<gwtVersion>2.6.1</gwtVersion>
<smartgwtVersion>5.0-p20141210</smartgwtVersion>
Hi,
I have a ListGrid component that is contained in a SectionStackSection, and I grouped it by a field that is contained in a hidden field.
I also use the group summary to show some data in the header of each group element.
Code:
ListGrid grid = new ListGrid() { @Override protected Canvas createRecordComponent(final ListGridRecord record, final Integer colNr) { final String fieldName = this.getFieldName(colNr); if (FILE.equals(fieldName)) { final Button btnDetails = new Button(messages.details()); btnDetails.addClickHandler(new ClickHandler() { @Override public void onClick(final ClickEvent clickEvent) { triggerDownload(record); } }); return btnDetails; } else { return null; } } }; ListGridField parentField = new ListGridField("parent", messages.mcmCommand()); parentField.setHidden(true); parentField.setShowGroupSummary(false); ListGridField commandGridField = new ListGridField("commandName", messages.command()); commandGridField.setShowGroupSummary(true); commandGridField.setWidth("*"); ListGridField statusGridField = new ListGridField("status", messages.status()); statusGridField.setShowGroupSummary(true); statusGridField.setAutoFitWidth(true); statusGridField.setAutoFitWidthApproach(AutoFitWidthApproach.BOTH); ListGridField fileGridField = new ListGridField(FILE, messages.file()); fileGridField.setShowGroupSummary(false); fileGridField.setWidth(new Button(messages.file()).getWidth() + 10); grid.setFields(parentField, commandGridField, statusGridField, fileGridField); grid.groupBy("parent"); grid.setShowGroupSummary(true); grid.setShowGroupSummaryInHeader(true); grid.setShowRecordComponents(true); grid.setShowRecordComponentsByCell(true); grid.setGroupStartOpen(GroupStartOpen.NONE); return grid;
Moreover, the grid does not fill the entire space that is allocated to it. I mean that I can resize columns to get my expected interface, but it's not directly as I want it to be.
Current display :
 
Expected Display :
 
I already found some elements that answer a little bit my question here but I'm still wondering if there is really no way to display correctly the grid.
 
Comment