When using column reordering along with frozen columns and state persistence in the Ej2 TreeGrid, the column reordering functionality does not work as expected due to conflicts in how the TreeGrid handles the column positions. When columns are reordered, the frozen columns maintain their fixed position, while the non-frozen columns shift dynamically. However, when state persistence is enabled, the previously saved column order is restored upon page reload, which may override the reordered state or cause misalignment between frozen and non-frozen columns. Additionally, internal indexing issues can prevent the correct application of reordered positions, leading to unexpected behavior.
case1:
2.Reorder the task id column with taskname
3.Now refresh the page
4.You can see the header names are wrongly displayed
Before:
After:
Case 2:
1.Run the same sample
2.Reorder the other columns(non-treecolumns)
3.Refresh the page you can see console error