Skip to Content

Table: unbindRows & destroyColumns cause error: Cannot read property 'shouldRender' of undefined

Dec 19, 2016 at 06:22 PM


avatar image
Former Member


I am using the Table object from the SAPUI5's sap.ui.table namespace and I am doing this:

var oTable = new sap.ui.table.Table();

then I am binding data from JSONModel to it, then, on rowSelectionChange, when we deselect a row I am doing:



When deselecting the row I get the following error:

"TableRenderer.js:6 Uncaught TypeError: Cannot read property 'shouldRender' of undefined" I found the method 'shouldRender' of the sap.ui.table.Column class, but I am not sure why would the cells be rerendered in this case.

I also noticed that if I use either "oTable.destroyColumns()", or "oTable.unbindRows()" separately, the error does not appear.

I am using the "1.38.11" version of SAPUI5.

Can you please help me identify why this happens?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers