dloendorf
(Dloendorf)
February 4, 2025, 8:03am
1
Upgraded from 14.6.1 to 15.0 and checkboxes disappeared. Returned to 14.6.1 and checkboxes came back. How to fix in 15.0?
columns: [{ data: 'ID', readOnly: true },
{ data: 'selectChkBx', type: 'checkbox' },
{ data: 'Name', readOnly: true },
{ data: 'Phone', readOnly: true },
{ data: 'VDate', readOnly: true },
{ data: 'GDate', readOnly: true },
{ data: 'HDate', readOnly: true },
{ data: 'SPP', readOnly: true }
Hi @dloendorf
We did not change anything regarding checkboxes. We still have the same setup https://handsontable.com/docs/javascript-data-grid/checkbox-cell-type/
Could you share a demo where the issue is replicable and check of there are any errors in the console?
Hey @dloendorf it seems that your message was cut.
dloendorf
(Dloendorf)
February 6, 2025, 2:39pm
5
I also emailed you the html. If I open my post all is there. The html is not showing. How do I show html code in the post so all can see?
dloendorf
(Dloendorf)
February 6, 2025, 2:47pm
6
Okay - Here is a jsfiddle
Test Example No Checkbox
we recommend sharing sandboxes (as you did with JSFiddle example). Only then we can debug the code. Plus, forum script might be blocking some entries due to security reasons.
When it comes to checkboxes - as previously mentioned you use no theme
so some of the elements need to be added manually (like arrows for sorting). Now the checkbox within a standard for will be added to 15.1.0 within this request Add checkbox input visibility for the no-theme variant by adrianspdev · Pull Request #11427 · handsontable/handsontable · GitHub
We plan to publish the next version next week. I will keep you updated.
dloendorf
(Dloendorf)
February 7, 2025, 1:08pm
8
Thank you for the explanation. I went back and added themeName: ‘ht-theme-main’, to my fiddle. I assume it now has a theme, however the checkboxes are still not showing. https://jsfiddle.net/hop0dx3u/
Is there something else I am missing? Thanks for your help.
Hi @dloendorf ,
the issue is the column widths. You have them set too small. Try this for column widths:
colWidths: [100, 100, 100, 80, 100, 100, 100, 100],
Thanks
dloendorf
(Dloendorf)
February 7, 2025, 3:08pm
11
I added those links to the JSFiddle but still do not see checkboxes. What am I doing wrong? Thanks
dloendorf
(Dloendorf)
February 7, 2025, 4:49pm
12
Thank you! I assumed the stretchAll would proportionally stretch the widths. It did in 14.6.1. I will remove that option and set the widths.
I think you can either specify the column widths or use stretchAll.
1 Like
Hi @timeflys54321
@dloendorf
I have great news today! The issues that we discussed are closed as solved in v15.2.0.
Please go to our Changelog for more details about the changes and additions in this version: https://handsontable.com/docs/javascript-data-grid/changelog/