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.
Syncfusion Feedback

Prevent reorder last column

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,
I want to prevent reorder last column in treegrid, Can't drag it to another position
Regards,
M.Salah  

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. 
$("#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. 


CONFIRMATION

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.

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

;