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

Stretching with childs?

6 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 29 Sep 2010, 03:04 PM
Hello,

I've got a GridView with four interlaced ChildGridViews. Each GridView contains some different and some identical columns. The identical containing numbers and are arranged right. The columns that are different in each GV are arranged left. My intention is to get all the number-columns below the others.

I have tried to insert a column with width="*" before the right arranged columns start. But that don't works. The stretching function does not consider the width of the child GridViews. So the columns are not below the others.

What can I do to get this work?

6 Answers, 1 is accepted

Sort by
0
Markus
Top achievements
Rank 1
answered on 29 Sep 2010, 04:02 PM
Here is a picture
0
Markus
Top achievements
Rank 1
answered on 29 Sep 2010, 04:04 PM
And one where the right columns which should be arranged among each other, are marked.
0
Tsvyatko
Telerik team
answered on 05 Oct 2010, 08:38 AM
Hello Markus,

Please, check this thread - http://www.telerik.com/community/forums/silverlight/gridview/sharing-parent-column-width-in-child-grid.aspx - and let me know if the approach from the project attached there works in your scenario (the same code can be applied both for WPF and Silverlight).

Regards,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Markus
Top achievements
Rank 1
answered on 06 Oct 2010, 08:37 AM
Hello Tsvyatko,

thank you for your answer. I can't find the class "ColumnWdthBinder" which Ganesh uses for his solution. It isn't in the attachment.


private ColumnWdthBinder binder;
 
private void PersonGrid_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs
{
if (grid.ParentOfType<RadGridView>() != null)
            {
                for (int i = 0; i < grid.Columns.Count; i++)
                {
                    this.binder.RegisterColumn(grid.Columns[i], i);
                }
            }
}
}


Best regards
Markus
0
Markus
Top achievements
Rank 1
answered on 07 Oct 2010, 10:28 AM
Did you find the class?
0
Maya
Telerik team
answered on 08 Oct 2010, 01:04 PM
Hi Markus,

On the basis of your requirements, you may use the sample project attached by Tsvyatko in the mentioned forum thread.
 

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Markus
Top achievements
Rank 1
Answers by
Markus
Top achievements
Rank 1
Tsvyatko
Telerik team
Maya
Telerik team
Share this question
or