Is there a way to initialize the checkbox state of the Columns submenu when the ColumnMenu is enabled ?
I would like to have specific column checked and some unchecked by default.
2 Answers, 1 is accepted
answered on 24 Apr 2017, 10:58 AM
The checked state of the Columns sub-menu items represents whether a column is visible in the Grid and allows for hiding and showing Grid columns via the UI.
You can set the initial state of the columns via the Hidden() column configuration helper method - the ones that are initially hidden with Hidden(true) will be unchecked in the Columns sub-menu, while the initially visible ones will be checked, e.g. (based on this online demo, also available in the Sample application coming with your installation package):
I hope this helps, but if I am missing something, please describe the scenario, and the desired functionality in further details, so I can try providing a more to-the-point suggestion, if one is supported. Thank you in advance.