I’ve added a customer column to the Sales > Orders grid by extending prepareColumns. What determines the order the columns are rendered in? Is it possible to change a column’s position on the grid?
I’ve added a customer column to the Sales > Orders grid by extending prepareColumns.
Share
By default columns are displayed in the order addColumn() was called. You can change this with the function addColumnAfter().
The following code would add a column with an id of “category_id” after the “entity_id” column. The ‘entity_id’ is the id of the column, not the “index”. 99/100 times these are the same, but be aware of it.