We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Prevent reorder last column

I want to prevent reorder last column in treegrid, Can't drag it to another position

1 Reply

MK Mahalakshmi Karthikeyan Syncfusion Team January 17, 2017 02:54 PM UTC

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. 
     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. 
Mahalakshmi K. 

Live Chat Icon For mobile
Up arrow icon