Disabling a single column on click


#1

I am trying to implement a search filter in Gantt. When I try to click input box for entering input it deselects the input and selects whole header.

It is also adding an extra class called gantt-noselect to the body.

My goal is to disable the header select or find a solution where we can resolve the current issue.

Any ideas or suggestions?

Thanks,
Bharath

Here is the video link of the issue:
https://drive.google.com/file/d/1a5rWRRQNzM7x9SWMUKWm0qOynCeNGccn/view?usp=sharing


#2

Hello,
We are aware of this bug. That issue occurs because of the keyboard_navigation extension. After you type something, Gantt is repainted, and the keyboard navigation tries to restore the focus to the grid header cell, not to the element inside it. The dev team will fix that issue in the future, but I cannot give you any ETA.
As a workaround, you can switch the focus to that element after the render method:
https://docs.dhtmlx.com/gantt/api__gantt_render.html ;
Please check the following example:
https://snippet.dhtmlx.com/im7d45i5
Also, you can use the onchange event instead of the oninput event:
https://snippet.dhtmlx.com/ns21nd02
Another way is to turn off the keyboard_navigation before repainting data, then turn it on:
https://snippet.dhtmlx.com/42bcnqeq