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

Reorder columns in Grid

Hello,

I'm trying to move columns by code but I can't achieve it.

I looked for the grid.ReorderColumnByIndex(fromIndex, toIndex) and it seems to do nothing.

The same result removing a column and inserting it in another position.

There is a way to do this?

Thank you.

3 Replies

FA Fabrizio Alessandro November 16, 2019 02:20 PM UTC

Found that AllowReordering="true" was not set.

A possible bug:
in the list returned by "await grid.GetColumns()" the HeaderText property of all columns is set to null.


VN Vignesh Natarajan Syncfusion Team November 18, 2019 01:38 PM UTC

Hi Fabrizio,  

Greetings from Syncfusion support.  

Query: “A possible bug: in the list returned by "await grid.GetColumns()" the HeaderText property of all columns is set to null.” 
 
Thank you for taking the time to report this issue “GetColumns method return the HeaderText property as null instead of value” and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming main release (2019 Volume 4) which is expected to be rolled out in the month of December 2019. 
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this feedback. 
 
 
Till then we appreciate your patience. 

Regards, 
Vignesh Natarajan. 



VN Vignesh Natarajan Syncfusion Team November 27, 2019 05:34 AM UTC

Hi Fabrizio,  
 
We are glad to inform that our latest Nuget package (17.3.0.29-beta) has been successfully rolled out. In this release, we have resolved the issue “GetColumns method return the HeaderText property as null instead of value”. Please find the latest Nuget package from below and also the release notes regarding the fixes we have included in this release.  
 
 
 
Kindly ensure that you have referred the latest version script and css as below  
 
  <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.3.29/fabric.css" rel="stylesheet" /> 
 
 
Please get back to us if you have further queries. 
 
Regards, 
Vignesh Natarajan. 
 


Loader.
Live Chat Icon For mobile
Up arrow icon