Posted 20 August 2021, 11:23 am EST
When creating a custom control for inputs on my column (in flexgrid) for number values, it achieves the desired affect of displaying commas for large numbers as you type. However after modifying a value for example in column a row 1 and saving it, when adding a new row upon click of the new cell in column a the value from row 1 is inserted by default. Please see video attached with a demo of the issue
private convertNumberColumnsToNumberInputs(): void {
if (!this.useInputNumberEditor) {
return;
}
this.grid.columns.forEach((col: Column) => {
const colFormat = col.format;
if (colFormat && !col.dataMap && colFormat.startsWith('n')) {
col.editor = new InputNumber(document.createElement('div'), {
format: col.format
});
(col.editor as InputNumber).inputElement.className += ' editable-cell';
}
});
}