Maybe overlooking it in the API docs, but is there a way to disable row selection as a configuration option other than trapping the onBeforeSelect event and returning false?
You can use “onBeforeSelect” event:
grid.attachEvent(“onBeforeSelect”, function(new_row,old_row){
return false;
});
Should this work with Gantt and grid there please? I’m getting “Uncaught ReferenceError: grid is not defined” error message.
Unfortunately such solution can be applied only for the dhtmlxGrid object itself.
So is there any other solution how to disable row select in Gantt please?
Hello,
Yes, it is possible to disable selecting rows:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskselected_event.html
Here is a sample:
https://snippet.dhtmlx.com/z2727jg4