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

Save/load layout

7 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jorge Delgado-Lopez
Top achievements
Rank 1
Jorge Delgado-Lopez asked on 07 May 2008, 03:18 PM
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

Sort by
0
Boyko Markov
Telerik team
answered on 08 May 2008, 07:28 AM
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:
  1. Resize some of the columns in the RadGridView
  2. Save the layout
  3. Resize some other columns in the RadGridView
  4. 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
Jorge Delgado-Lopez
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
Boyko Markov
Telerik team
answered on 09 May 2008, 11:36 AM
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
0
Jorge Delgado-Lopez
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
Boyko Markov
Telerik team
answered on 12 May 2008, 02:53 PM
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.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
Jorge Delgado-Lopez
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
Boyko Markov
Telerik team
answered on 15 May 2008, 03:40 PM
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
Tags
GridView
Asked by
Jorge Delgado-Lopez
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Jorge Delgado-Lopez
Top achievements
Rank 1
Share this question
or