I'm having trouble getting the getCellContextMenuItems() method called. Here's a reproducible sample, the GWT.log() method below never gets called for me:
I'm using version: Isomorphic SmartClient/SmartGWT Framework (v12.1p_2020-04-23/Enterprise Deployment 2020-04-23) - Initialization Complete
Maybe I'm doing something wrong, but the above looks correct as far as I can tell.
Code:
public void onModuleLoad() { final ListGrid listGrid = new ListGrid(DataSource.get(DSConst.OpeningSQL.DATASOURCE)) { @Override public MenuItem[] getCellContextMenuItems(final Integer record, final Integer rowNum, final Integer colNum) { GWT.log("I GOT CALLED"); return null; } }; listGrid.setShowCellContextMenus(true); listGrid.setWidth100(); listGrid.setHeight100(); listGrid.setAutoFetchData(true); listGrid.draw(); }
Maybe I'm doing something wrong, but the above looks correct as far as I can tell.
Comment