If I have a object with properties bound to a grid: A, B, C, D (Object Order), but columns as displayed (D, C, B, A) by changing the columns value on the gird when an item is added it seems to be added in the grid column order, not the object order, so I get a very interesting collection:
A, B, C, D
A, B, C, D
D, C, B, A
Where the first two are items retrieved from a database and the last one is added via the add button on the grid.
Needless to say when I send the data to the web service, it really doesn't like it.
I don't know if this is a Javascript problem, a WCF problem, a Kendo MVVM problem or a Kendo Grid problem. If I rearrange the object on the WCF side to list in the order I want to display things. All seems fine.
What is the best way to handle this?
Thanks
Randy
A, B, C, D
A, B, C, D
D, C, B, A
Where the first two are items retrieved from a database and the last one is added via the add button on the grid.
Needless to say when I send the data to the web service, it really doesn't like it.
I don't know if this is a Javascript problem, a WCF problem, a Kendo MVVM problem or a Kendo Grid problem. If I rearrange the object on the WCF side to list in the order I want to display things. All seems fine.
What is the best way to handle this?
Thanks
Randy