Hi,
I am having the following requirement related to the column header menu.
In my grid, when the horizontal scroll bar is visible, the column menu (three dots icon) should be shown in the column headers. The column header menu should have filtering, lock and unlock options.
When the horizontal scroll bar is not visible (in other words when the user is able to see the whole content of the grid without scrolling horizontally), the column header should have the column filter option. There shouldn't be a column menu.
Either of these can be done at the point of grid initialization. But I'm having trouble changing them dynamically. This is needed because we also provide a separate control to show/hide the columns in the grid so the total width of the grid can change based on the total visible column width.
Is there a way to add/remove the column menu dynamically on the column headers?
Thanks.
Asela