[eluser]TheJayL[/eluser]
Ok I found a major issue with my code. The grid breaks when I include an ajax function that I created. When I reorder the columns: Basically at the end of DragEnd I call my ajax function to store the new column order. Everything seems to look and work fine and my code writes out the sessions vars. If I reload the page it stays the way I left it.
However, if I use any of the grids functions like next page or change the rows per page or show/hide columns (basically anything the grid reloads the data but not the whole page) I get errors in the grid. They all are linked to this one action of mine. The biggest error is that the grid populates, but with the old column order. The headers are still correct, but the actual data is not. So my columns are not matching up. Once I reload, everything looks and operates as it should until I use one of the built in Flexi operations again.
This makes me think either the JS is taking care of managing its own column layout, independent of the XML, or my ajax command is somehow breaking the JS and not allowing it to update itself. Once I take out the Ajax it all works great.
I have also checked the XML after the columns have been reordered and it is correct, and I have "alerted" the column titles after the Grid populates, both are correct. My leaning towards something going haywire in this like of code, but not sure: