Hello, I'm having issues with the order index of my grid's columns.
I am saving the grid settings in a session variable, with the class provided here. I added a debug to see what is happening.
During the save, after i moved some column, i get this output:
Output:
My grid have those settings:
and my masterTableView has those settings:
Is it normal to get OrderIndex always in the same order? Does that explain why i load my grid settings i always get default order?
I save column slection too, that works really well, saved in session and saved in database. But OrderIndex... always in this order.
Anything im missing?
EDIT: i missed something... wether you hide or show a column, the order Index is always in order.
Then, any idea on how am i going to save the indexOrder of the column in my database?
I am saving the grid settings in a session variable, with the class provided here. I added a debug to see what is happening.
During the save, after i moved some column, i get this output:
Protected Overridable Sub SaveColumnSettings() Settings.ColumnSettings.Clear() Dim i = 0 For Each column As GridColumn In Grid.MasterTableView.Columns Debug.Print("column no " + i.ToString() + " with OrderIndex " + column.OrderIndex.ToString()) i += 1 Settings.ColumnSettings.Add(GetColumnSettings(column)) Next.....column no 0 with OrderIndex 2column no 1 with OrderIndex 3column no 2 with OrderIndex 4column no 3 with OrderIndex 5column no 4 with OrderIndex 6column no 5 with OrderIndex 7.....My grid have those settings:
<ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true" AllowDragToGroup="false" ColumnsReorderMethod="Reorder" AllowColumnHide="true" Selecting-AllowRowSelect="false"><MasterTableView AllowMultiColumnSorting="false" AllowNaturalSort="true" AllowCustomSorting="true" AllowCustomPaging="true" .... >.....Is it normal to get OrderIndex always in the same order? Does that explain why i load my grid settings i always get default order?
I save column slection too, that works really well, saved in session and saved in database. But OrderIndex... always in this order.
Anything im missing?
EDIT: i missed something... wether you hide or show a column, the order Index is always in order.
Then, any idea on how am i going to save the indexOrder of the column in my database?