Our company has the pro edition of 7.1.1 and I am trying to do 2 things. The first thing is I am trying to do is highlight certain rows a color for the whole row based on a property. I saw a different article and copied a bit of the guys code from it but my issue is that the rows can skip around due to an archive filter we have in place, and now a new filter as well, that are added when creating the HOT using this code:
const [columnToFilter] = columns.map((column, index) => ({ column, index }))
.filter(({ column }) => column.data === 'isDeleted');
if (columnToFilter) {
this.grid.getPlugin('filters').addCondition(columnToFilter.index, 'eq', [false], 'conjunction');
}
We also have a couple of frozen columns which are making this difficult as the first 2 columns are difficult to highlight as they’re frozen and the other rows will “randomly” become partially highlighted, usually the first 2 frozen rows, because of the missing/hidden rows from the filter that are in-between. Any way to get get the highlighting done accurately? Especially since the user can interact with the rows to trigger the highlighting affect while they are filtered.
The second issue I am having, I believe is also due to the filters we have in place before the table is even created. I removed the code above for 2 sets of filters and it seems to work in regards to not showing showing the error but I need it to work with the filters. I am trying to add and save a new row and, while it does save correctly, it is throwing an error for the user and I cant seem to find out why. It is happening when trying to update the table data and more precisely when I run the updateSettings() method. Here is the error I am encountering:
“Error saving new record: Cannot read property ‘Acceptance - Visual - Req’ of undefined”
Cannot read property ‘Acceptance - Visual - Req’ of undefined\n at ColumnSettings.cells (http://localhost:8080/js/main.bundle.js:3398:53)\n at Core.getCellMeta (http://localhost:8080/js/main.bundle.js:102641:43)\n at SamplesGenerator.dataFactory (http://localhost:8080/js/main.bundle.js:121917:32)\n at http://localhost:8080/js/main.bundle.js:182770:89\n at rangeEach (http://localhost:8080/js/main.bundle.js