GridColumn appears in the ColumnChooser with visible false activated, can we make it visible by selecting it ?
Hello,
There is a strange behavior in the Syncfusion Grid regarding the ColumnChooser.
If we define a GridColumn with Visible="false" and set ShowColumnChooser="true" on the SfGrid, the column appears in the ColumnChooser. However, when we click to show it, the column remains hidden.
It would be interesting to modify this behavior, similar to the following example:
-
When you click Show in the ColumnChooser, the column becomes and it impact
Visible="true". -
You can hide it again by clicking it a second time and it impact
Visible="false". -
Alternatively, you can set
ShowInColumnChooser="false"if you never want the column to appear in the ColumnChooser.
Thank you in advance for you answer
Greetings from Syncfusion,
From your query, we understand that when a GridColumn set with Visible as false and ShowColumnChooser as true on the SfGrid, the column appears in the ColumnChooser. However, selecting it does not make it visible—the column remains hidden.
· To analyze the reported issue, could you please share a simple and reproducible sample that demonstrates the problem? This will assist us in identifying the issue more efficiently and providing a resolution
· Kindly share your attempt to replicate the issue using the attached simple sample
· Share a video demonstration of the issue with a detailed explanation. This will greatly assist us in understanding the problem
Please note: setting showInColumnChooser as true results in the column being visible in the ColumnChooser. If your intention is to hide the column from the chooser, you should set showInColumnChooser = false, which is the expected default behavior.
Kindly clarify your exact requirement so we can assist you further from our end.
Regards,
Guhanathan
No , i want to show the column and switch the visible="false" into visible="true" when i select column from the showcolumnheader also its in visible ="false" for the column , i think the behavior will be more logic if you add this behavior in the grid showcolumnheader , there is no utility to have the column in showcolumnheader is it is visible="false" and if we can't show it when we are clicking on it
there are 2 solutions for me :
- Hide from the showcolumnheader depending on visible property on the gridcolumn
- visible="true/false" can be switched from the showcolumnheader by clicking on the no visible column
tell me if is this possible for you please
Hi A,
Query 1:"Toggle column visibility from false to true on
selection from ShowColumnHeader control"
In Syncfusion's Grid component, when a column is initially configured with visible="false", it remains hidden from the grid view. However, if the user selects that column from the ColumnChooser (also referred to as ShowColumnHeader), the grid automatically updates the column's visibility by setting visible="true", making it visible in the grid.
This dynamic behavior allows users to customize their view by showing or hiding columns as needed, without requiring changes to the underlying code.
Before:
|
|
After:
|
|
Sample:https://blazorplayground.syncfusion.com/embed/VtreXkWyrMzRvwrc?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5
if we misunderstood your requirement, kindly get back to us with more details.
Query 2:"Hide from the showcolumnheader depending on visible property on the gridcolumn"
In Grid component, each column has a visible property that determines whether it is displayed in the grid initially. Some users might require the specific column to hidden during initial rendering and provide an option to enable visibility after loading. So setting visible as false will hide the column from the grid view and its visibility can be changed using ColumnChooser. However, Visible property does not hide the column name from the Column Chooser Dialog. To hide a column from appearing in the Column Chooser itself, you should use the ShowInColumnChooser as fasle property instead. This ensures the column remains hidden both in the grid and from user selection in the Column Chooser.
Regards,
Guhanathan R
- 3 Replies
- 2 Participants
-
A A
- Sep 10, 2025 09:35 AM UTC
- Sep 15, 2025 06:44 AM UTC