I have a requirement to add freeze column option from contextmenuclick. But when I do treegrid.refreshColums() after setting the freeze property , it is throwing me error 'cannot read properties of null(reading 'queryselector'). But it will work fine if I give freeze property in e-column tab. Is there any way I can handle this without setting freeze property in e-column ?
Hi Farveen,
Thanks for the reply. I need the freeze option in context menu, not in external button.
Context Menu 1 - Right-click (mouse) or long-press (mobile) a "Column Header", to pop-up menu items, which has FreezeCol ☑: Freeze all left-hand-side (including current) columns.
When i try to achieve this using contextmenuclick I am getting the above errors. After freezing the column and doing treegrid.refreshColums() using contextmenuclick has this issue (If i set any e-column with freeze value, this works fine). Is this not achievable using contextmenu without setting default freeze value in e-column?
Any help will be appreciated. Thanks in advance