I am looking to dynamically set rows to ReadOnly, based on data that is the datasource. From reviewing options, it appears the only way to do this is in the cells: function call. When doing a quick test, however, it appears that the cell function is executed for any scroll or selection in the table? Below is the simple check I did and it is executing pretty continually when scrolling or clicking into a cell.
The logic I want to run would be to loop over the dataset and set specific rows to readonly, as well as set the background color to a grey. But, that would hammer performance if it executed that every click/scroll?
Is there a better way to dynamically set rows to readonly?
Also, I’m currently running the with the following version, using the react wrapper:
“@handsontable/react”: “3.1.3”,
“handsontable”: “^7.4.2”,
Is there any significant performance improvements if I was to migrate to version 10? What version of react wrapper would I use?
cells: function(row, col, prop) {
console.log(‘running’)
return cellProperties
}