Run the following sample on IE9, Windows 7, SmartGWT 3.1.p2012-11-27. (Firefox 15 seems to behave as expected).
Group by some column (in this case, Customer Name). Then choose "Columns..." from the grid's context menu. All columns in the chooser display the group value instead of a row/column value. See attachment for visual.
Group by some column (in this case, Customer Name). Then choose "Columns..." from the grid's context menu. All columns in the chooser display the group value instead of a row/column value. See attachment for visual.
Code:
package com.islandpacific.testcase.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.smartgwt.client.core.KeyIdentifier; import com.smartgwt.client.data.DataSource; import com.smartgwt.client.util.KeyCallback; import com.smartgwt.client.util.Page; import com.smartgwt.client.util.SC; import com.smartgwt.client.widgets.grid.ListGrid; import com.smartgwt.client.widgets.grid.ListGridField; import com.smartgwt.client.widgets.layout.VLayout; public final class TestCaseEntryPoint implements EntryPoint { public void onModuleLoad() { ListGrid grid = new MyListGrid(); grid.setDataSource(DataSource.get("ORDER")); grid.setAutoFetchData(true); grid.setUseAllDataSourceFields(true); ListGridField tracking = new ListGridField("TRACKINGNUMBER"); tracking.setAttribute("detail", true); grid.setFields(tracking); VLayout layout = new VLayout(); layout.setWidth100(); layout.setHeight100(); layout.addMember(grid); layout.draw(); /* * enable the sgwt debug console in development mode */ if (!GWT.isScript()) { KeyIdentifier debugKey = new KeyIdentifier(); debugKey.setCtrlKey(true); debugKey.setAltKey(true); debugKey.setKeyName("D"); Page.registerKey(debugKey, new KeyCallback() { public void execute(String keyName) { SC.showConsole(); } }); } } class MyListGrid extends ListGrid { public MyListGrid() { setAttribute("useAdvancedFieldPicker", true, false); setAttribute("advancedFieldPickerThreshold", 1, false); } } }
Comment