By way of clarifiction, I am using a custom implementation of handsontable where we overlay some customization over it, but the guts of it work the same. I’ve included the html for the “grid” and also the typescript code that populates the fields.
<grid
[data]=“theGridRows”
[gridColumns]=“gridColumns”
[gridSettings]=“gridSettings”
gridName=“my-totally-awesome-grid”>
gridColumns = [
new KeyColumn(‘valueCode’),
new CheckboxColumn(‘IsCheckboxMode’, ‘isCheckBoxMode’, 50, true),
new NumericColumn(‘ItemNumber’, ‘itemNumber’, 45, true, ‘00000’),
new DateColumn(‘TransDate’, ‘transDate’, 60, true),
new TextColumn(‘UserName’, ‘userName’, 60, true),
new TextColumn(‘Text’, ‘text’, 40, true),
new TextColumn(‘Comment’, ‘comment’, 70, true)
];
get theGridRows(): ITransactionsFlatView[] {
let gridData = [];
this.valueSources.forEach(valueSource =>
{
let oneRow=
{
valueCode: valueSource.valueCode,
isCheckBoxMode: valueSource.checkBoolean,
itemNumber: valueSource.itemNumber,
transDate: valueSource.transDate,
userName: valueSource.userName,
text: valueSource.text,
comment: valueSource.comment
};
gridData.push(oneRow);
tempCounter++;
}
);
return gridData;
}
When I put a break point on the “gridData.push(oneRow);” line and check the payload, the valueSource.itemNumber is coming in as type “string” even thought it’s a number. I tried setting it up as both a number and a string, but it’s not showing up either way.
One additional detail - I tried hard coding the field to a dummy string and it still does not display, but in other text fields I’m able to do that successfully (in the for each section).