This is a migrated thread and some comments may be shown as answers.

Grid Settings Persisting, problem with column order

3 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ulrich
Top achievements
Rank 1
Ulrich asked on 24 Aug 2010, 09:27 AM
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

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Aug 2010, 02:56 PM
Hi Ulrich,

I would suggest you to refer to the following help topic which elaborates on saving grid settings on a per user basis. I hope this helps.

Kind regards,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ulrich
Top achievements
Rank 1
answered on 26 Aug 2010, 03:06 PM
Hello Maria,

this is exactly the help topic I used to implement the persisting functions, using the same source code snippets. I still experience aforementioned problems as the settings are not mapped to the correct column.

best regards

Ulrik
0
Maria Ilieva
Telerik team
answered on 31 Aug 2010, 01:23 PM
Hello Ulrich,

Will it be convenient for you to open a regular support ticket and send us small runnable application which demonstrates your scenario and the issue you are facing? Thus we will be able to test it locally and advise you further.
Thank you in advance for your cooperation.

All the best,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Ulrich
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Ulrich
Top achievements
Rank 1
Share this question
or