Posted 16 August 2021, 6:43 am EST - Updated 3 October 2022, 12:48 pm EST
Bento Number box in wizmo grid with NgFor and Ng Model not working
Posted by: saisushanth.bynagari on 16 August 2021, 6:43 am EST
-
-
Posted 17 August 2021, 2:28 am EST
Hi,
On observing the code snippet in the screenshot, I have observed that you are trying to load the cell values using “cell.value”, which causing the issue here, as cell do not have value when CellType is set to “Cell” therefore you need to use the item property and pass the binding in it like [(ngModel)]=“cell.item[col.binding]”.
I have created a sample demonstrating the same:
https://stackblitz.com/edit/angular-r5clgz
Note: I have used a number input, you can use any input type you like.
Let us know if that resolves your issue.
Regards,
Ashwin