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

New version and now HeaderText does not work

3 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Simplex
Top achievements
Rank 1
Simplex asked on 15 Jul 2009, 09:24 PM
Upgraded to 2009.2.701.35 and now it does not use the value in the HeaderText field.

This displays "Data.FirstName" as the column header instead of "First Name"
                        <telerik:GridViewDataColumn  
                            HeaderText="First Name"  
                            IsCustomSortingEnabled="False"  
                            IsFilterable="False"  
                            DataMemberPath="Data.FirstName" /> 


This displays "Default" as the column header instead of "Default Value"
                    <telerik:GridViewDataColumn  
                        HeaderText="Default Value"  
                        UniqueName="Default" 
                        IsSortable="True"
                        <telerik:GridViewColumn.CellTemplate> 
                            <DataTemplate> 
                                <CheckBox  
                                    VerticalAlignment="Center" 
                                    IsChecked="{Binding Path=IsDefault}" 
                                /> 
                            </DataTemplate> 
                        </telerik:GridViewColumn.CellTemplate> 
                    </telerik:GridViewDataColumn> 

3 Answers, 1 is accepted

Sort by
0
Accepted
Allan
Top achievements
Rank 1
answered on 15 Jul 2009, 09:43 PM
User Header instead of HeaderText
0
Simplex
Top achievements
Rank 1
answered on 15 Jul 2009, 09:58 PM
That works.

So, was this a change from the last version? Or was a user never supposed to use HeaderText? This had been working for the last couple of weeks.

Thanks
0
Vlad
Telerik team
answered on 16 Jul 2009, 06:12 AM
Hi Edward,

Header property was introduced in our latest release and now you can put any object in the grid headers including Buttons, string, etc. similar to MS DataGrid.

Sincerely yours,
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.
Tags
GridView
Asked by
Simplex
Top achievements
Rank 1
Answers by
Allan
Top achievements
Rank 1
Simplex
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or