ej2_custom2.min.js:formatted:17005 Uncaught (in promise) TypeError: Cannot read property 'querySelector' of undefined
( this.contentRenderer.getTable() returns undefined )
at e.emptyRow (ej2_custom2.min.js:formatted:17005)
at e.renderEmptyRow (ej2_custom2.min.js:formatted:17001)
at e.dataManagerFailure (ej2_custom2.min.js:formatted:17137)
at ej2_custom2.min.js:formatted:16937
This promise object seems to be created in the Render.prototype.refreshDataManager(args) function.
Although the columns get properly sized to fit column text and most users won't notice the error while they have no debugger active, I don't think this is supposed to happen. (I just wish to auto size the columns BEFORE I fill the grid with data)
EDIT: It looks like it was my mistake of creating my DataManager instance in the load callback, which I saved to a variable in outer scope, but load is not guaranteed to be triggered only once, so some of my checks referenced the wrong instance.
By wrapping the assignment in load in a 'if (!myvar)' condition the exception no longer appeared.
Kind regards,
Remco Beurskens