<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Table: unbindRows &amp; destroyColumns cause error: Cannot read property 'shouldRender' of undefined in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-unbindrows-destroycolumns-cause-error-cannot-read-property/m-p/324979#M5121</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am using the Table object from the SAPUI5's sap.ui.table namespace and I am doing this: &lt;/P&gt;&lt;P&gt;var oTable = new sap.ui.table.Table();&lt;/P&gt;&lt;P&gt;then I am binding data from JSONModel to it, then, on rowSelectionChange, when we deselect a row I am doing: &lt;/P&gt;&lt;P&gt;oTable.destroyColumns(); &lt;/P&gt;&lt;P&gt;oTable.unbindRows(); &lt;/P&gt;&lt;P&gt;When deselecting the row I get the following error: &lt;/P&gt;&lt;P&gt;"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. &lt;/P&gt;&lt;P&gt;I also noticed that if I use either "oTable.destroyColumns()", or "oTable.unbindRows()" separately, the error does not appear. &lt;/P&gt;&lt;P&gt;
I am using the "1.38.11" version of SAPUI5. &lt;/P&gt;&lt;P&gt;Can you please help me identify why this happens?&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2016 18:22:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-12-19T18:22:01Z</dc:date>
    <item>
      <title>Table: unbindRows &amp; destroyColumns cause error: Cannot read property 'shouldRender' of undefined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-unbindrows-destroycolumns-cause-error-cannot-read-property/m-p/324979#M5121</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am using the Table object from the SAPUI5's sap.ui.table namespace and I am doing this: &lt;/P&gt;&lt;P&gt;var oTable = new sap.ui.table.Table();&lt;/P&gt;&lt;P&gt;then I am binding data from JSONModel to it, then, on rowSelectionChange, when we deselect a row I am doing: &lt;/P&gt;&lt;P&gt;oTable.destroyColumns(); &lt;/P&gt;&lt;P&gt;oTable.unbindRows(); &lt;/P&gt;&lt;P&gt;When deselecting the row I get the following error: &lt;/P&gt;&lt;P&gt;"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. &lt;/P&gt;&lt;P&gt;I also noticed that if I use either "oTable.destroyColumns()", or "oTable.unbindRows()" separately, the error does not appear. &lt;/P&gt;&lt;P&gt;
I am using the "1.38.11" version of SAPUI5. &lt;/P&gt;&lt;P&gt;Can you please help me identify why this happens?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 18:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-unbindrows-destroycolumns-cause-error-cannot-read-property/m-p/324979#M5121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-19T18:22:01Z</dc:date>
    </item>
  </channel>
</rss>

