Hello Telerik,
I just switched to the Q2 release and finally started implementing the persisting of grid settings.
Sadly, I experience a very unsatisfying behaviour.
I am populating the grid via OnNeedDataSource and explicitely checked that no simple binding happens anywhere in the code. I also create the column structure programmatically, no autocreatecolumns.
In the grid, I have a couple of columns (especially the first five columns) hidden by default.
When I persist grid settings after for example changing the order of columns via drag/drop or if I show a hidden column and then persist the settings, the settings are persisted with the wrong order.
If I have column a(hidden), b, c, d
then drag column b after c, so I have
a(hidden), c, b, d
then show column a, so I have
a,c,b,d
and then persist and reload the settings, the result is:
a (hidden (why?)), b (instead of c, with width of a!), c (with width of b), d (with width of c)
and the grid itself when resizing a column explodes into the right (maybe because one column "more" has been persisted than is currently shown? Furthermore, neither grouping, filter expressions or sorting is persisted. If I sort a column, after loading the settings the column is highlighted (like beeing sorted) but without a sort indicator and no sorting is done at all.
I tried many things, loading settings at different points in the control lifecycle, but basically have given up for now. I am using the code from the latest demo.
What can I check for to get on the right trail of fixing this problem?
best regards
Ulrik
I just switched to the Q2 release and finally started implementing the persisting of grid settings.
Sadly, I experience a very unsatisfying behaviour.
I am populating the grid via OnNeedDataSource and explicitely checked that no simple binding happens anywhere in the code. I also create the column structure programmatically, no autocreatecolumns.
In the grid, I have a couple of columns (especially the first five columns) hidden by default.
When I persist grid settings after for example changing the order of columns via drag/drop or if I show a hidden column and then persist the settings, the settings are persisted with the wrong order.
If I have column a(hidden), b, c, d
then drag column b after c, so I have
a(hidden), c, b, d
then show column a, so I have
a,c,b,d
and then persist and reload the settings, the result is:
a (hidden (why?)), b (instead of c, with width of a!), c (with width of b), d (with width of c)
and the grid itself when resizing a column explodes into the right (maybe because one column "more" has been persisted than is currently shown? Furthermore, neither grouping, filter expressions or sorting is persisted. If I sort a column, after loading the settings the column is highlighted (like beeing sorted) but without a sort indicator and no sorting is done at all.
I tried many things, loading settings at different points in the control lifecycle, but basically have given up for now. I am using the code from the latest demo.
What can I check for to get on the right trail of fixing this problem?
best regards
Ulrik