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

[Solved] Column Header Tooltips & Column header height for long column names

1 Answer 173 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.
David
Top achievements
Rank 1
David asked on 02 Mar 2011, 06:29 PM

The Gridview demos were extremely helpful, I made use of many of the features and now the users want me to fix the 2 remaining problems that the demos don't address:
1) Lots of whitespace when the column header is longer than the data in the column.  In Excel it is very easy to adjust the header row height so that words wrap, I saw some related discussion but didn't find a solution that worked.
2) Column header tool-tips would be a great addition to the demos.  This allows you to use an abbreviated column name and then have the tool-tip provide clarity i.e. "Red Tea" -> "Organic Rooibos Tea"

Thank you.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Mar 2011, 09:14 AM
Hello David,

 
Since the Header property of the columns is object you can assign anything - even UI element like TextBlock. For example:

<telerik:GridViewDataColumn.Header>


                        <TextBlock Tex="My long text" TextWrapping="Wrap" ToolTipService.ToolTip="MyTooltip"/>


  </telerik:GridViewDataColumn.Header>


Kind regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or