support
support copied to clipboard
Resizing or moving task selects the row
"Hello,
When I move or resize the task, the row is automatically selected, that is not the behavior I would expect, the row should not be selected when making these movements, it should be selected only if I click the checkbox."
- Go to https://bryntum.com/products/gantt/examples/basic/
- Change using the following code
import { Gantt, StringHelper } from '../../build/gantt.module.js?476098';
import shared from '../_shared/shared.module.js?476098';
new Gantt({
appendTo : 'container',
dependencyIdField : 'sequenceNumber',
rowHeight : 45,
tickSize : 45,
barMargin : 8,
selectionMode: {
cell: false,
multiSelect: true,
checkbox: true,
checkboxIndex: 0,
checkboxOnly: true,
showCheckAll: false,
deselectFilteredOutRecords: false,
includeChildren: false,
includeParents: 'some',
preserveSelectionOnPageChange: false,
preserveSelectionOnDatasetChange: false,
deselectOnClick: true,
dragSelect: false,
selectOnKeyboardNavigation: false,
column: false,
rowNumber: false,
selectRecordOnCell: true,
},
project : {
autoLoad : true,
transport : {
load : {
url : '../_datasets/launch-saas.json'
}
}
},
columns : [
{ type : 'name', width : 250 }
],
// Custom task content, display task name on child tasks
taskRenderer({ taskRecord }) {
if (taskRecord.isLeaf && !taskRecord.isMilestone) {
return StringHelper.encodeHtml(taskRecord.name);
}
}
});
https://github.com/bryntum/support/assets/16693227/590b1ab5-3312-4fd6-b08e-62be6c762cf0