Hi Mohamed,
Thanks for contacting Syncfusion support.
We can cancel the column dragging event with the help of ‘columnDragStart’ client side event with condition. Please find the below code example for details.
$("#TreeGridContainer").ejTreeGrid({
//…
allowColumnReordering: true,
columnDragStart: function (args) {
if (args.draggedColumnIndex == args.model.columns.length-1)
args.cancel = true;
},
}) |
We have also prepared a sample based on this and you can find the sample from the below link.
Regards,
Mahalakshmi K.