EnableMenu: Boolean;
The EnableMenu property determines whether column visibility menu is active.
Use JSON or the setEnableMenu method to set the property value, and the getEnableMenu method to get the property value.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Get tree titles caps = Tree.getCaptions(); // Disable column visibility menu caps.setEnableMenu(false);
After executing the example column visibility menu is disabled and hidden.
See also: