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;
});
1 Like
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