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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Prevent reorder last column

Thread ID:





128344 Jan 16,2017 02:32 PM UTC Jan 17,2017 02:54 PM UTC JavaScript 1
Tags: ejTreeGrid
Mohamed Salah
Asked On January 16, 2017 02:32 PM UTC

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

Mahalakshmi Karthikeyan [Syncfusion]
Replied On 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. 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon