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

[Solved] Columns names displayed in Grouping UI bar

1 Answer 76 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maciej
Top achievements
Rank 1
Maciej asked on 14 Jun 2013, 01:00 PM
Hello,

the RadDataGrid has a "Grouping UI" bar showed on the left side of the grid. When I drag'n'drop columns to that bar, the grouping occurs. The problem is that the displayed name of the column showed in that bar is the same as the property name (PropertyName). It should be the same as the column name that is displayed in the grid (Header). See XAML below:

<Grid:RadDataGrid.Columns>
  <Grid:DataGridTextColumn PropertyName="ColumnName1" Header="Friendly Display Name 1"/>
  <Grid:DataGridTextColumn PropertyName="ColumnName2" Header="Friendly Display Name 2"/>
</Grid:RadDataGrid.Columns>

The sample property name is "ColumnName1" and the associated header name is "Friendly Display Name 1". The latter is the properly displayed as a column header in a grid. But when I move that column (by drag'n'drop) to the "Grouping UI" bar, the name in that bar will be shown as "ColumnName1" instead of "Friendly Display Name 1". Is it possible to chagne that behavior? I don't want to show my C# code member names in the GUI.

Best regards,
Maciej GliƄski

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivaylo Gergov
Telerik team
answered on 17 Jun 2013, 10:57 AM
Hello Maciej,

Thank you for your interest.

Yes, I must admit that this is a bug and I have logged it in our bug-tracking system. For now, as a workaround, I can suggest that you listen for the collection changed event of the RadDataGrid.GroupDescriptors property and set the PropertyGroupDescriptor.DisplayContent of the added descriptor.

I would like to thank you for the valuable feedback therefore I have updated your Telerik points. Sorry for any inconvenience caused.

 

Regards,
Ivaylo Gergov
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Maciej
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or