Skip to Content
author's profile photo Former Member
Former Member

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

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.