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

[Solved] Group column name other than the column name

3 Answers 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas
Top achievements
Rank 1
Andreas asked on 06 Jan 2009, 08:21 AM
Hello Telerik team,

I set the "HeaderText" of a GridViewDataColumn to a custom text (other than the binding property):

///  
/// Initialize the RadGridView... 
///  
GridViewDataColumn gridCol = new GridViewDataColumn(); 
gridCol.IsVisible = true
gridCol.HeaderText = "Name"
gridCol.DataMemberBinding = new Binding("Property1"); 
gridCol.IsGroupable = true
gridCol.IsSortable = true
this.gridViewResults.Columns.Add(gridCol); 
 

"gridViewResults" is a RadGridView instance and is configured as follows in the xaml-file:
 <telerikGrid:RadGridView x:Name="gridViewResults"  
    MinHeight="240"  
    MaxHeight="240"  
    AutoGenerateColumns="False" 
    ScrollMode="RealTime" 
    HorizontalAlignment="Stretch" 
    IsReadOnly="True" 
    Margin="3,3,3,0" 
    BorderBrush="LightBlue" 
    BorderThickness="1" 
    ShowGroupPanel="True" 
    ShowColumnHeaders="True" 
    ColumnsWidthMode="Auto" 
    ></telerikGrid:RadGridView> 


For example if I group the column with HeaderText "Name" the group-box shows "Property1" instead of the HeaderText "Name". The group-box takes the property name instead of the HeaderText. The HeaderText looks fine.

Is this a bug or am I missing something to tell the group-box to take the HeaderText instead of the bound property name?

Thank you.

Greetings,
Stefan

3 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 09 Jan 2009, 12:10 PM
Hello Stefan,

This is a known bug in the RadGridView control, and it is already fixed.
It will be available with our next release, scheduled for the end of February.
If this is a show stopper for you, please let me know and I'll try to provide you with an unofficial build.

Best wishes,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andreas
Top achievements
Rank 1
answered on 09 Jan 2009, 12:28 PM
Hello Nedyalko,

I would appreciate an internal build, because we want to release a part of the application this month.
We bought the controls about 2 days ago.
I was wondering if the new "Latest Internal Builds" already works? - I only get an empty dropdown list.

Greetings,
Stefan
0
Nedyalko Nikolov
Telerik team
answered on 12 Jan 2009, 04:57 PM
Hi Stefan,

I'm attaching the latest stable binaries only for the RadGridView for Silverlight. Hence, if you use other controls in your application they will not work, but later today you will be able to download the new version from "Latest Internal Builds".

Greetings,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Andreas
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or