Issue
Everyone I enable the sidebar of the ag-grid , and the column show in the tool panel , is that possible to set disable for the pivot mode and the checkbox (make it readonly)
Solution
To prevent column visibility changes in UI, set lockVisible: true
in column definitions. The checkboxes will still be there, but they will be disabled.
To hide the pivot switch section from the panel, you need to set the grid sideBar
property to something like this:
sideBar: SideBarDef = {
toolPanels: [
{
id: 'columns',
labelDefault: 'Columns',
labelKey: 'columns',
iconKey: 'columns',
toolPanel: 'agColumnsToolPanel',
toolPanelParams: {
suppressPivotMode: true, // <-- suppress pivot!
suppressColumnSelectAll: true
},
},
],
defaultToolPanel: 'columns',
};
See more information about configuring the panel in docs here.
Answered By - Josef Bláha
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.