Hi Isomorphic,
please see this modified sample (v11.1p_2018-11-13).
How can I achieve the following things?
Thank you & Best regards
Blama
please see this modified sample (v11.1p_2018-11-13).
How can I achieve the following things?
- Set hoverWidth dynamically. In the sample it does not work at all. In my application it works, but only for the next hoverComponent after the current one, making the width setting wrong most of the time (reason for this requirement: Depending on some type field I do display a different DataSource with a different column count and therefore need a different width)
- Interact with the hoverComponent:
Here, if I scroll down to a Category="General office product" entry, the hoverComponent for those entries has a scrollbar.
I can only scroll it via the mouse wheel and only if the hoverComponent happens to get generated under the cursor, which is only the case if I'm over very right of the normal "Category" column on the normal ListGrid.
I'd need the hoverComponent to be some kind of "window" I can interact with. Perhaps an invisible clickMask around the hoverComponent, that removes the hoverComponent on click outside of it and otherwise allows interaction? Currently any mouse movement away from the normal ListGrid's cell removes the hoverComponent.
(Additional report here: The hoverComponent-ListGrid itself is too high, so that after scrolling a certain amount, the scrollbar current scrollbar position is not visible. So it is not possible to scroll all data into view.)
Code:
isc.ListGrid.create({ ID: "itemList", width: 500, height: 300, alternateRecordStyles: true, dataSource: supplyItemWithOps, fetchOperation: "outputsLimitedFetch", autoFetchData: true, fields: [{ name: "itemName" }, { name: "SKU" }, { name: "category" } ], canHover: true, showHover: true, showHoverComponents: true, hoverWidth: 1200, getCellHoverComponent: function (record, rowNum, colNum) { if (record.category == "Pastes and Gum") { itemList.hoverWidth = 500; isc.logWarn("Width set to 500"); } else { itemList.hoverWidth = 1000; isc.logWarn("Width set to 1000"); } this.rowHoverComponent = isc.ListGrid.create({ autoFetchData: false, autoFitData: "vertical", dataSource: "supplyItemWithOps" }); this.rowHoverComponent.fetchData({ category: record.category }, null, { showPrompt: false }); return this.rowHoverComponent; } });
Blama
Comment