Hi,
Thank you for the demo, I got it working with small work around for now, Please check below demo for more info.
Also I found one BUG, OPEN browser console for above example NOT stackblitz embedded console
then click on the checkbox in Header. We get an error as “Uncaught TypeError: Cannot create property ‘NaN’ on number ‘NaN’”
After debugging I found that, In above function which is in handontable.js file
When we click on the checkbox in Header then this function is used to set value
“DataMap.prototype.set = function(row, prop, value, source) {”
but ‘row’ and ‘prop’ parameters of this function gets ‘NaN’ value instead of row as -1 and prop as “select” (for this case)
/**
- Saves single value to the data array.
-
-
@param {Number} row Visual row index.
-
@param {Number} prop
-
@param {String} value
-
@param {String} [source] Source of hook runner.
*/
DataMap.prototype.set = function(row, prop, value, source) {
row = this.instance.runHooks(‘modifyRow’, row, source || ‘datamapGet’);
let dataRow = this.dataSource[row];
// TODO: To remove, use ‘modifyData’ hook instead (see below)
let modifiedRowData = this.instance.runHooks(‘modifyRowData’, row);
dataRow = isNaN(modifiedRowData) ? modifiedRowData : dataRow;
.
.
.
.
} else {
dataRow[prop] = value;
}
};
Thank you.