SmartGWT version: v10.0p_2015-06-23/PowerEdition Deployment (built 2015-06-23)
GWT version: 2.5.1
Browser: All
Is there a way to control the position of the hover component of a ListGrid?, I have overwritten the getCellHoverComponent method as follows:
Despite using setKeepInParentRect for the hover component, the component keeps overflowing from the window.
GWT version: 2.5.1
Browser: All
Is there a way to control the position of the hover component of a ListGrid?, I have overwritten the getCellHoverComponent method as follows:
Code:
@Override
protected Canvas getCellHoverComponent(Record record, Integer rowNum, Integer colNum) {
if (hoverComponent == null) {
hoverComponent = (ListGrid) RPCManager.createScreen("LinksDetailViewer");
hoverComponent.setHoverAutoDestroy(Boolean.FALSE);
hoverComponent.setHoverMoveWithMouse(Boolean.TRUE);
hoverComponent.setKeepInParentRect(Boolean.TRUE);
}
Criteria linksCriteria = new Criteria();
linksCriteria.addCriteria(C.OBJECTID, record.getAttributeAsInt(C.OBJECTID));
linksCriteria.addCriteria(C.LOGIDTO, 0);
DSRequest requestProperties = new DSRequest(DSOperationType.FETCH);
requestProperties.setShowPrompt(Boolean.FALSE);
hoverComponent.fetchData(linksCriteria, new DSCallback() {
@Override
public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) {
;
}
}, requestProperties);
return hoverComponent;
}