Hello, dear SmartGWT developers!
I'm using this code:
But having this code, I see in my rows 4 columns. And also I see the same columns in expanded details. Instead I want to see in rows only typeField and subtypeField, but in details the remaining two: valueField and descriptionField.
How can I achieve it? I was searching for something like ListGridField.setExpandable() or ListGrid.setExpandableFields(), but found nothing similar.
Thank you very much in advance!
I'm using this code:
Code:
ListGrid listGrid = new ListGrid(); listGrid.setWidth100(); listGrid.setHeight("50%"); listGrid.setShowAllRecords(true); listGrid.setAlternateRecordStyles(true); listGrid.setCanExpandRecords(true); listGrid.setExpansionMode(ExpansionMode.DETAILS); ListGridField typeField = new ListGridField("type", "Type", 200); ListGridField subtypeField = new ListGridField("subtype", "Subtype", 200); ListGridField valueField = new ListGridField("value", "Value", 150); ListGridField descriptionField = new ListGridField("desrc", "Description", 500); listGrid.setFields(new ListGridField[] {typeField, subtypeField, valueField, descriptionField}); listGrid.setCanResizeFields(true);
How can I achieve it? I was searching for something like ListGridField.setExpandable() or ListGrid.setExpandableFields(), but found nothing similar.
Thank you very much in advance!
Comment