After upgrading to 4.1 build 2014-04-05, I get the following popup error when right clicking on a grid header.
I apologise if this is already a known bug, but I did not find anything when doing a forum search.
A simple test case where this happens:
Regards
Rolf
I apologise if this is already a known bug, but I did not find anything when doing a forum search.
Code:
Uncaught exception escaped : java.lang.IllegalArgumentException
Something other than a Java object was returned from JSNI method '@com.smartgwt.client.widgets.grid.ListGrid::displayHeaderContextMenu(Lcom/smartgwt/client/widgets/Canvas;[I)': JS value of type boolean, expected java.lang.Object
See the Development console log for details.
Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling.Code:
package no.lottstift.test.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.layout.VLayout;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class TestGrid implements EntryPoint {
public void onModuleLoad() {
final ListGrid grid = new ListGrid();
ListGridField field1 = new ListGridField("name");
ListGridField field2 = new ListGridField("phone");
grid.setFields(field1, field2);
grid.setWidth100();
grid.setHeight100();
RootPanel.get().add(grid);
}
}Rolf