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

Grid is not saving layout when columns are grouped

3 Answers 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Piotr
Top achievements
Rank 1
Piotr asked on 02 Oct 2014, 09:06 AM
We allow our users to reorder columns. Everything works when there is no grouping. I looked at xml layout and columns are saved in order they appear on screen.
But when we create groups programmaticaly the saved layout is always the same. Even if I reorder groups xml layout save doesn't change.
I tried to modify it by hand and reload and it worked. I moved columns of groups in and they appeared in modified order on screen.

One solution is to modify layout returned by grid to make it in line with order of groups on screen and then save it. But I don't like it.

I'm using Version=2012.1.321.20

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 07 Oct 2014, 07:44 AM
Hello Piotr,

Thank you for writing.

I tried to reproduce the issue you are describing but to no avail. It seems that the layout is being correctly saved in all cases. You can find attached a video which demonstrates my tests. I am also attaching a sample project. Please, let me know if there is anything that I am missing.

Looking forward to your reply.

Regards,
George
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Piotr
Top achievements
Rank 1
answered on 07 Oct 2014, 08:47 AM
My mistake. I'm just starting with this control.

When I said grouping I didn't mean grouping when user drags one of columns up. I meant creating programmatically GridViewColumnGroup with columns in it.

When you move column B to be before column A and save layout and then reload the grid everything is displayed as before save.
0
Stefan
Telerik team
answered on 10 Oct 2014, 06:38 AM
Hello Piotr,

Thank you for the clarification.

Exporting of view definition is not currently supported by RadGridView. A feature request for such a functionality is available here. Feel free to add your vote for it: http://feedback.telerik.com/Project/154/Feedback/Details/110368-add-radgridview-add-export-of-viewdefinition.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Piotr
Top achievements
Rank 1
Answers by
George
Telerik team
Piotr
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or