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

ChildTemplate doesn't show up when grid is grouped

2 Answers 36 Views
GridView
This is a migrated thread and some comments may be shown as answers.
flo ulmé
Top achievements
Rank 1
flo ulmé asked on 01 Aug 2009, 08:27 AM
Hello guys,
I've rebuilded the First Look Example with ChildTemplate, foto... etc.
Now my problem ist, that whenever I group by a column by dragging it into the header, only the first and the last record's childtemplate show up, when clicking the plus (+). When I click the plus of other records, the plus only changes to a minus and nothing happens. But when I cancel grouping this records, the record's childTemplates are expanded and shown. It looks like they are expanded in the background but cannot be shown in the grouped grid.

I'm using following methods seen in one of your examples. The first I'm using to have default collapsed grouping and the second to change selected row on first click (needs your sample class DependencyObjectExtensions.cs).

private void GridViewGroupRow_Loaded(object sender, RoutedEventArgs args)
{
GridViewGroupRow groupRow = (GridViewGroupRow)args.OriginalSource;
groupRow.IsExpanded = 
false; }

private
 void HeaderButton_Click(object sender, RoutedEventArgs e) {
FrameworkElement element = (FrameworkElement)sender;
var row = element.GetVisualParent<GridViewRow>();
row.IsSelected = 
true;

Is possibly here something going wrong?


Any help would be appreciated

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Aug 2009, 06:39 AM
Hello,

Unfortunately I'm not sure what is causing this issue at your end however if you can send us small example (via support ticket) where the problem can be reproduced I'll gladly help you.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
flo ulmé
Top achievements
Rank 1
answered on 07 Aug 2009, 08:04 PM
hi vlad, thanks for your response.
I created a small example. I will send it to you via support ticket.
You can reproduce the problem by grouping by "Autor" or something.
Thanks a lot.
best wishes,
flo

Edit: support-ticket-id : 233608 ;-)
Tags
GridView
Asked by
flo ulmé
Top achievements
Rank 1
Answers by
Vlad
Telerik team
flo ulmé
Top achievements
Rank 1
Share this question
or