Posted 7 September 2021, 11:12 pm EST
Hi Team,
We are using Wijmo Grid in OutSystems Reactive.
We have the functionality to get a particular cell value on check of row checkbox.
On check, we are calling GridOS.ExternalAPI.getCellValue(rowNumber, CellNumber, GridID) by passing current row number, cell number and gridId
This call gives us the correct value (cell’s value of checked row) when we are on 1 page and checked any checkbox (before paging) but when we do paging and select any row from second and onwards page, it throws an error saying
_osjs.js?11_10_1_23852:5 TypeError: Cannot read properties of undefined (reading ‘dataItem’)
at GridPanel.getCellData (WijmoGridJS.js?6405:14)
at Object.getCellValue (GridFramework.js?6405:7916)
below are the code block of GridFramework.js which throws an error at _grid.cells.getCellData(row, col, false); line
// GridOS.ExternalAPI.getCellValue -> get the value of a cell
getCellValue: function (row, col, gridId) {
var _grid = GridOS.ComponentUtils.getGridObjectById(gridId).grid;
var value = _grid.cells.getCellData(row, col, false);
return value;
},
How to deal with this condition as GridFramework.js managed by GrapeCity
Thanks
Dhanraj