SmartClient Version: v10.0p_2015-10-07/LGPL Development Only (built 2015-10-07)
Google Chrome 45.0.2454.101 (64-bit)
Problem: ListGrids using setGroupTitleField with setShowGroupSummaryInHeader do not show a header or [+] icon. Instead the field is blank.
This used to work with smartgwt v10.0p_2015-01-14/LGPL.
Example code:
Google Chrome 45.0.2454.101 (64-bit)
Problem: ListGrids using setGroupTitleField with setShowGroupSummaryInHeader do not show a header or [+] icon. Instead the field is blank.
This used to work with smartgwt v10.0p_2015-01-14/LGPL.
Example code:
Code:
public class TestWindow extends Window
{
final DataSource ds = new DataSource()
{
{
setClientOnly(true);
setCacheData(new Record[] { createRecord("100", 1, "Group 1"), createRecord("101", 2, "Group 1"),
createRecord("103", 3, "Group 1"), createRecord("200", 4, "Group 2"),
createRecord("201", 5, "Group 2"), createRecord("202", 6, "Group 2"),
createRecord("300", 7, "Group 3"), createRecord("301", 8, "Group 3") });
}
private Record createRecord(String name, Integer id, String category)
{
final Record rv = new Record();
rv.setAttribute("name", name);
rv.setAttribute("id", id);
rv.setAttribute("category", category);
return rv;
}
};
public TestWindow()
{
setHeight100();
setWidth100();
final ListGrid grid = new ListGrid()
{
{
setWidth100();
setHeight100();
setDataSource(ds);
final ListGridField category = new ListGridField("category");
final ListGridField id = new ListGridField("id");
final ListGridField name = new ListGridField("name");
setFields(category, id, name);
setShowGroupSummary(true);
setShowGroupSummaryInHeader(true);
setGroupByField("category");
setGroupTitleField("category");
}
};
addItem(grid);
grid.fetchData();
}
}
Comment