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.
Unfortunately, activation email could not send to your email. Please try again.

Prevent reorder last column

Thread ID:





128344 Jan 16,2017 09:32 AM Jan 17,2017 09:54 AM JavaScript 1
Tags: ejTreeGrid
Mohamed Salah
Asked On January 16, 2017 09:32 AM

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

Mahalakshmi Karthikeyan [Syncfusion]
Replied On January 17, 2017 09:54 AM

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. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.