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

Vertically Stretch GridView

3 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jonathan Miller
Top achievements
Rank 1
Jonathan Miller asked on 30 Oct 2008, 07:14 PM
Hello

I have a WPF GridView with Parent / Child data and would like the GridView to fill the space with as much as possible.

In my test scenario, I have 2 parents.  The first parent has approx 1200 records, the second parent has about 4 records.

I have about 50% of the page as white space, though the horizontal scrollbar is at the very bottom of the page as it should be.

 I have triad a VerticalAlignment="Stretch" and VerticalContentAlignment="Stretch" with no change.

Any ideas for the resolution is appreciated.

Thank you for great products.

3 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 31 Oct 2008, 06:11 PM
Hi Jonathan Miller,

As I understand you tried to make the RadGridView control fill the white space. You have to use the ColumnsWidthMode property of the RadGridView. For a hierarchy scenario you have to customize the template of the ChildDataControlPresenter in order to set ColumnsWidthMode of the child grids (as you can see in the attached example). 

If this solution does not solve your issue, can I ask you to send me an example project (or at least a screenshot) which demonstrates the exact problem.

Sincerely yours,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jonathan Miller
Top achievements
Rank 1
answered on 01 Dec 2008, 08:57 PM
Hello

I am still working on stretching the child items on the grid. 

For example, I have a parent item with 100 child items.

I see a vertical scroll bar for all parents in my grid, but no vertical scroll for all of the children - only my mouse wheel is working for vertical scrolling. 

Can you assist please?  Thanks
0
Nedyalko Nikolov
Telerik team
answered on 04 Dec 2008, 12:52 PM
Hi Jonathan Miller,

I couldn't reproduce your problem, so can you provide me with more detailed information. It would be great if you can send a sample project demonstrating the exact issue that you fall into.

Regards,
Nedyalko Nikolov
the Telerik team

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