Skip to Content
avatar image
Former Member

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


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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers