Answered: Can I have A grid column with checkbox + checkall header + hiddable
I have been searching online but could not find a good solution for my need. Before I draw the conclusion, I would like to get some confirmation or suggestion from this forum.
I need to have a column in a grid that:
1. Has a checkall checkbox in header that allows user to select or deselect all rows in the grid.
2. Can be hidden/removed based on certain condition when page is rendered (user permission or data)
Thanks. gridPanel.headerCt.gridDataColumns[index].setVisible(boolean) worked for me!
One more question on this when I am at it, is there a way to make sure the checkbox stays at the center of its column? I did not see any styling in all the examples I saw, and it seems the checkbox moves with the resizing of the grid/window.