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?
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
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
Hello Markus,
Regards,
Tsvyatko
the Telerik team
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.
Best regards
Markus
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
Hi Markus,
Maya
the Telerik team
On the basis of your requirements, you may use the sample project attached by Tsvyatko in the mentioned forum thread.
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