I need to disable the dragging event in a column but I am not able to capture dragging, Please help me?
How to capture dragging event
Hey @preet.saxena
You’re looking for fillhandle
fillHandle: true // possible values: true, false, “horizontal”, “vertical”
It cannot be changed only for one row/column but you can block it via beforeChange
hook. You’d need to look for the autofill
change type.
Ok, I am looking. Thanks
Please update me on this when you’re ready
Thanks for all your support, I am able to do this with before change method.
beforeChange: (changes, source) => {
if (source === ‘CopyPaste.paste’ || source === ‘Autofill.fill’ || source === ‘edit’) {
for (let i = 0; i < changes.length; i += 1) {
if (changes[i][1] === this.nameConventionString) {
changes[i] = null;
}
}
}
if (source === ‘populateFromArray’) {
for (let i = 0; i < changes.length; i += 1) {
if (changes[i][1] !== this.nameConventionString) {
if (changes[i][2] === changes[i][3]) {
changes[i] = null;
}
}
}
}
},
exactly I’m glad that it works for you