Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hello,

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:

oTable.destroyColumns();

oTable.unbindRows();

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?

0 REPLIES 0