Hello,
I am facing an issue with rendering my handsontables. I have created bootstrap tabs in my HTML like this:
<div class="tab">
<button class="tablinks" onclick="openCity(event, 'tt')">tt</button>
<button class="tablinks" onclick="openCity(event, 'yy')">yy</button>
<button class="tablinks" onclick="openCity(event, 'bb')">bb</button>
</div>
<!-- Tab content -->
<div id="tt" class="tabcontent">
<div class="row">
<div class="col-md-6">
<div class="handsontableContainer" id="handsontable_1" style="z-index:0"></div>
</div>
<div class="col-md-6">
<div class="handsontableContainer" id="handsontable_2" style="z-index:0"></div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="handsontableContainer" id="handsontable_3" style="z-index:0"></div>
</div>
</div>
</div>
<div id="yy" class="tabcontent">
<div class="row">
<div class="col-md-12">
<div class="handsontableContainer" id="handsontable_4" style="z-index:0"></div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="handsontableContainer" id="handsontable_5" style="z-index:0"></div>
</div>
<div class="col-md-6">
<div class="handsontableContainer" id="handsontable_6" style="z-index:0"></div>
</div>
</div>
</div>
<div id="bb" class="tabcontent">
<div class="col-md-12">
<div class="handsontableContainer" id="handsontable_7" style="z-index:0"></div>
</div>
</div>
</div>
My first issue was that my handsontable was not rendering correctly, it showed only the first column and the rendering was done only when clicking on it.
I sort of solved the issue by rendering my tables every time I click on a new tab in the openCity function like this:
window.table_ttt.render();
window.table_yyy.render();
My problem now is that the table is not rendering but in a different way. The table has all the columns, but not with the cell formatting. But when going from maximize to minimize of the internet navigator window (or the over way around), it renders correctly.
If you could help me on this that would be brilliant.
Thanks for your help