Closed mddifilippo89 closed 2 years ago
Hey @mddifilippo89 ,
Your ViewChild
selector wasn't matching the id in the template and grid1 ended up being undefined. Try it like this: @ViewChild('gridRowEdit', { read: IgxGridComponent, static: true })
Thanks!
Description
Add row programmatically results in error eg. Error: Cannot read properties of undefined (reading 'beginAddRowByIndex') or beginAddRow
Steps to reproduce
Result
Error: Cannot read properties of undefined (reading 'beginAddRowByIndex')
Expected result
Row is added at the top, index 0
Note, it should be documented how to set cell values using this method.