SmartGWT version: v10.0p_2015-06-23/PowerEdition Deployment (built 2015-06-23)
GWT version: 2.5.1
Browser: IE 11
Hi Isomorphic,
We have a listGrid with an override on getCellHoverComponent, returning a new ListGrid:
LinksDetailViewer is:
As can be seen in the attached image, sometimes the amount of records returned with the cellHoverComponent fetch, creates a listgrid that overflows from the browser window.
Is there a way to fix this keeping the getCellHoverComponent override point?
Thanks
GWT version: 2.5.1
Browser: IE 11
Hi Isomorphic,
We have a listGrid with an override on getCellHoverComponent, returning a new ListGrid:
Code:
@Override protected Canvas getCellHoverComponent(Record record, Integer rowNum, Integer colNum) { if (hoverComponent == null) { hoverComponent = (ListGrid) RPCManager.createScreen("LinksDetailViewer"); } hoverComponent.setHoverAutoDestroy(Boolean.FALSE); 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; }
Code:
<?xml version="1.0" encoding="UTF-8"?> <isomorphicXML xmlns:fmt="WEB-INF/"> <fmt:bundle basename="com.em.teco.server.Messages" /> <ListGrid ID="linksListGrid" dataSource="sprlinks" width="250" height="250"> <hoverMoveWithMouse>true</hoverMoveWithMouse> <keepInParentRect>true</keepInParentRect> <fetchOperation>fetchAllowedLinksByUsergroups</fetchOperation> <overflow>scroll</overflow> <autoFitData>vertical</autoFitData> <emptyMessage> <fmt:message key='pm.links.noinfo' /> </emptyMessage> <loadingMessage> <fmt:message key='pm.links.gettinginfo' /> </loadingMessage> <loadingDataMessage> <fmt:message key='pm.links.gettinginfo' /> </loadingDataMessage> <showHeader>false</showHeader> <fields> <ListGridField name="linkCaption" /> <ListGridField name="linkValue" /> </fields> </ListGrid> </isomorphicXML>
Is there a way to fix this keeping the getCellHoverComponent override point?
Thanks
Comment