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

Text wrapping in a column header (2nd time)

3 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Szymon Wantuch
Top achievements
Rank 1
Szymon Wantuch asked on 23 Jun 2010, 03:42 PM
Hello,

I am sorry for repeating the thread, but unfortunately, there was an error at the exact moment of posting and now all I can see is a "Server error" when I try to access the thread. After almost 30 min of searching the website for any contact to administrator of the forum I've decided to repost the isssue. Sorry for inconvenience.

The issue is the possibility of wrapping the text inside the column header: example in this thread cannot really be used, because the AlignmentContentPresenter is obsolete, also my efforts with using TextBlock yield no results.

Also, second question is about the possibility of creating the "overheader" gruping columns, in the style of a pivot grid.

Sorry for inconvenience,
Best Regards,
Szymon Wantuch

3 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 23 Jun 2010, 04:02 PM
Hi Szymon Wantuch,

Regarding the text wrapping issue:
Please try the following XAML :
<telerik:GridViewDataColumn  Width="100"   DataMemberBinding="{Binding ObjectID}" >
                   <telerik:GridViewDataColumn.Header>
                       <TextBlock Text="Some long text here tes123 test123" TextWrapping="Wrap" />
                   </telerik:GridViewDataColumn.Header>
               </telerik:GridViewDataColumn>

Regarding the "overheader" . This feature is not internally supported by RadGridView ( yet) . We are working towards adding such feature , meanwhile there is still a way to achieve that. Please have a look at my blog post.

Greetings,
Pavel Pavlov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Kevin Happe
Top achievements
Rank 1
answered on 27 Jul 2010, 09:41 PM
How would I wrap the header text if I was adding the column in code and not in xaml?
0
Vlad
Telerik team
answered on 28 Jul 2010, 06:50 AM
Hi,

You can add exactly the same TextBlock by code in desired column Header property.

All the best,
Vlad
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Szymon Wantuch
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Kevin Happe
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or