Based on some condition I need to hide a column in slickgrid depends upon the user criteria and after user required, We need to visible the column in a slickgrid. So initially i have to hide a column by using hideColumnId, In this hideColumnId variable is give which column we need to hide, I have to get the ID from hideColumnId, In this hideColumnId called in a service file for use of hide and visible the column along with i have send the parentpage context to service file for processing. So, I have try this way to hide a column in slickgrid, But hidden column is not happen in the slickgrid. I have shared code snippet in below.
I dont know the reason why hidden is not working in slickgrid. So kindly provide a proper solution for my issue
if (hiddenColumnId){
parentPageContext.angularGrid.gridService.hideColumnById(hiddenColumnId)
}
Same like a hidden columns I need to visible the columns. There is any way to achieve this visible a column in the slickgrid.
Software Version:
- angular: 11.2.18
- angular-slickgrid: 2.30.4
- Operating System : Windows 10
- Typescript : 4.0.8
- node: 14.18.3
Using CSS you can achieve the functionality, but there is no default configuration available for it within the package.
you can see this answer for your reference.