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

Lost GridViewGroupPanelItem functionality with template

2 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 09 Jul 2015, 08:55 PM

Hello,

 I finally got my group panel items to show the name of the column rather than the type of the object stored in the Header property.  A picture is attached.

 Unfortunately, now I lost the nice built in functionality that comes with it.

 Such as:

  • The border around the column name
  • The ability to sort the group by (asc/desc)
  • The X that slides in from the right to remove the item from the group by.

Is there a way to get that back?  Or perhaps I should be doing it a different way?

Here is my XAML:

<Style TargetType="telerik:GridViewGroupPanelItem">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate>
                <TextBlock Text="{Binding Column.Header.Name}" />
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

  Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Kyle
Top achievements
Rank 1
answered on 10 Jul 2015, 08:31 PM

I wound up going the Blend route.

 http://docs.telerik.com/devtools/silverlight/controls/radgridview/styles-and-templates/styling-the-group-panel

0
Dimitrina
Telerik team
answered on 13 Jul 2015, 01:03 PM
Hello,

The referred part in the RadGridView's template structure is called GridViewGroupPanelItem, it represents the grouped cell within RadGridView's GroupPanel. 

To know the latest recommendations on how to style Telerik UI for WPF you can read the common topics about Setting a Theme (Using Implicit Styles). You can also check the Editing Control Templates topic as a reference.

Alternatively, you can specify a DisplayContent for the ColumnGroupDescriptor. To find more information, please refer to the section on Grouping.

Regards,
Dimitrina
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Kyle
Top achievements
Rank 1
Answers by
Kyle
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or