Hi,
I create a ListGrid instance via JavaScript in my own MyListGrid implementation.
But how can I tell the JS instance to use my own overriden getHeaderContextMenuItems method (written in Java) or pass that in some way?
thanks,
I create a ListGrid instance via JavaScript in my own MyListGrid implementation.
But how can I tell the JS instance to use my own overriden getHeaderContextMenuItems method (written in Java) or pass that in some way?
Code:
class MyListGrid extends ListGrid { public MyListGrid(JavaScriptObject js) { super(js); } @Override protected MenuItem[] getHeaderContextMenuItems(Integer fieldNum) { ... } public static MyListGrid createMY() { return new MyListGrid(_createFromJS() ); } private static native JavaScriptObject _createFromJS() /*- { return $wnd.isc.ListGrid.create({ autoFetchData: false, ... }); }-*/; }
thanks,
Comment