DataGrid2 columns displaying in the wrong position
0
I have a DataGrid2 with a lot of columns. In the studio I have defined the columns in the following order: Tag Number, Country, Industry, Seal Type / Model. On the page, this is reflected when you expand the 'eye' icon. However the table displays the columns in the following order, with Seal Type / Model between Tag Number and Country. Reordering is not turned on for this datagrid2, and I have a configuration attribute to allow the grid to be personalised. Interestingly if I remove the configuration attribute, the grid shows the columns in the expected order. Looking at this extract from the config string, you can see why the columns display in the order that they do - the 'order' property is moving Seal Type / Model forward. {"column":"Tag Number","sort":false,"sortMethod":"asc","hidden":false,"order":5},{"column":"Country","sort":false,"sortMethod":"asc","hidden":false,"order":7},{"column":"Industry","sort":false,"sortMethod":"asc","hidden":false,"order":8},{"column":"Seal Type / Model","sort":false,"sortMethod":"asc","hidden":false,"order":6} My question is, how is this happening when reordering has never been turned on for this datagrid2? And what can I do about this in the hosted environment?
asked
Adam Wise
3 answers
0
Hi Adam,
You can allow reordering per column if you double click on the column header on the widget:
You need to adjust all columns to no reorder.
answered
Feras Kamel
0
Hi Adam, if you put the whole widget on yes reordering and set all columns to no reorder that will work as you want.
answered
Feras Kamel
0
If you need the configuration attribute, did you try to put the attributes in the right order?