Hi. I am trying to save/load the layout of a grid, I don't think it works. In your Example application the save/load layout example does nothing.
I took a quick look at the xml that is generated and i found that indeed the grouping is saved but with no data!
<SummaryRowGroupHeaders>
<Telerik.WinControls.UI.GridViewSummaryRowItem />
<Telerik.WinControls.UI.GridViewSummaryRowItem />
</SummaryRowGroupHeaders>
Thanks,
- jorge
7 Answers, 1 is accepted
0
Hello Jorge Delgado-Lopez,
The purpose of the save/load layout feature is to save the current layout (sizes and locations) of the columns in RadGridView. It is not serializing the data of RadGridView in the generated xml. Please try the following:
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The purpose of the save/load layout feature is to save the current layout (sizes and locations) of the columns in RadGridView. It is not serializing the data of RadGridView in the generated xml. Please try the following:
- Resize some of the columns in the RadGridView
- Save the layout
- Resize some other columns in the RadGridView
- Load the layout
Please write me back if you have any other questions regarding save/load layout of RadGridView.
Sincerely yours,Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
superold
Top achievements
Rank 1
answered on 08 May 2008, 02:26 PM
Hi
What I want to do is to restore how the Grid looked like when saved. That is, which columns were visible, the size of them and also the filters applied and grouping. Not the data. So this works, but not for grouping and filtering.
Thanks,
- jorge
0
Hi Jorge Delgado-Lopez,
Filtering and Grouping are logical, rather than layout settings. However, we will carefully consider changing the current behavior of the save and load layout feature. If you have any suggestions about the functionality, please feel free to share them with us.
Do not hesitate to write me back if you have any other questions.
All the best,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Filtering and Grouping are logical, rather than layout settings. However, we will carefully consider changing the current behavior of the save and load layout feature. If you have any suggestions about the functionality, please feel free to share them with us.
Do not hesitate to write me back if you have any other questions.
All the best,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
superold
Top achievements
Rank 1
answered on 09 May 2008, 12:11 PM
How can I create them programatically?
A filter can be set, but the grouping?
- j
0
Hello Jorge Delgado-Lopez,
You can take a look at our Grouping example of RadGridView in our QSF for more information about how grouping works. The following code shows how to add a grouping to RadGridView through the API:
radGridView1.MasterGridViewTemplate.GroupByExpressions.Clear();
to clear the collection.
If it is necessary to update the grouping panel, use the code below:
radGridView1.UpdateGroupPanel();
Please write me back, if I could be of further help.
Best wishes,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You can take a look at our Grouping example of RadGridView in our QSF for more information about how grouping works. The following code shows how to add a grouping to RadGridView through the API:
radGridView1.MasterGridViewTemplate.GroupByExpressions.Add(tbGroupExpressions.Text, tbFormatString.Text);
To clear the grouping expressions use:radGridView1.MasterGridViewTemplate.GroupByExpressions.Clear();
to clear the collection.
If it is necessary to update the grouping panel, use the code below:
radGridView1.UpdateGroupPanel();
Please write me back, if I could be of further help.
Best wishes,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
superold
Top achievements
Rank 1
answered on 12 May 2008, 03:42 PM
Good, so there would be a way to serialize the grouping and filters and be able to restore them. Sort of like a report.
- j
0
This could be possible, but it is not an object of the save/load layout feature. We will consider adding more functionality to save/load layout.
If you need more information please write us back.
Greetings,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
If you need more information please write us back.
Greetings,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center