How to make unit section clickable in unit view?


Section clickable in unit view?

Hi @sachin_Chaudhari

Please use the code below to catch a click on X axis:

scheduler.attachEvent("onSchedulerReady", function(){
  (scheduler.$container || scheduler._obj).addEventListener("click", function(e){
     if(scheduler.getState().mode == "unit" &&".dhx_scale_bar")){
        var action_data = scheduler.getActionData(e);
  		var clickedColumn = action_data.section;

Here you also can check the Snippet.

Please don’t create several same topics on forum in the future.


Section clickable in unit view?

Thank you so much @Polina , It’s working for me.