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

AutoGenerateHierarchy - Expand ChildRelation horizontaly

4 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Elmar
Top achievements
Rank 1
Elmar asked on 20 Oct 2008, 10:32 AM
Hi there.

I generate a GridView from a DataSet that contains two related tables. The relation between the two is intepreted by

            GridView.AutoGenerateHierarchy = true;


All of this works like a charm. The only issue is that I don´t know how to make the hierarchical child stretch columns to full width. Although the Grid itself stretches to full width, the child relation does not inherit this and the colums are too narrow.

Put simple - How to stretch child colums to the full width? Everything is generated programmatically from DataSets.

Please also the screenshot in the thread below...

Thanks!
El

4 Answers, 1 is accepted

Sort by
0
Elmar
Top achievements
Rank 1
answered on 21 Oct 2008, 08:00 AM
To clear things up a bit, I uploaded a screenshot that shows the issue:
Screenshot of the GridView

Thanks,
El
0
Nick
Telerik team
answered on 21 Oct 2008, 11:36 AM
Hi Elmar,

Thank you for contacting us and sending us the screenshot.

We do support Fill mode:

this.radGridView1.MasterGridViewTemplate.ChildGridViewTemplates[0].AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; 

Please, try this and let us know if it works for you.

Unfortunately, we do not support extending the header after the columns.

Don't hesitate to contact me if you have further questions.

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Elmar
Top achievements
Rank 1
answered on 21 Oct 2008, 02:13 PM
Nick,

this is exactly what I needed. Actually it is pretty straight-forward but I simply haven´t thought of that.

May I suggest that you add this little line to the documentation? Not exactly how ti use the fill command -which is pretty obvious- but rather how to manipulate the ChildGridView when generating everything programmatically (using features like AutoGenerateHierarchy). Something like - "to adjust the presentation of your hierarchical child data you can access the corresponding ChildGridViewTemplate like this..."

Thanks for your support,
Elmar
0
Nick
Telerik team
answered on 23 Oct 2008, 01:38 PM
Hello Elmar,

Thank you for your suggestion. We are going to update our help in the upcoming releases.

Do not hesitate to contact me back if you have further questions.

Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Elmar
Top achievements
Rank 1
Answers by
Elmar
Top achievements
Rank 1
Nick
Telerik team
Share this question
or