I want to freeze a column. Fixed columns do not scroll when the scroll bar scrolls horizontally
You can do that by adding several grids in the layout configuration:
Here are examples of how it can be implemented:
Use these methods of yours, and there will be a problem when the hidden Gantt chart page will show exceptions
Probably, that issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
If you can reproduce the issue in the snippets, please, give me the steps.
If you cannot reproduce the issues there, please add your configuration in the following snippets and make sure that the issue is reproduced there. Then, click on the
Share button and send me the link.
Is there a way to achieve this freeze column in the resources view?
I’ve just been using your snippets to try and achieve it, but it doesn’t seem to be working for me. I’m likely either missing something or it’s not possible.
Here’s where I’ve gotten to so far: http://snippet.dhtmlx.com/5/7b61267e5
Recently the dev team suggested a different way of fixing or freezing the grid column.
To freeze a column, it is not necessary to add several grids. Instead, you can use a CSS variable to specify the column position when you scroll the grid. Then you need to attach an event handler to the scrollbar and update the variable each time you scroll the grid:
You can use the same approach for the resource grid.
Here is the updated snippet: