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

radGridView Column Header Text Wrap

3 Answers 607 Views
GridView
This is a migrated thread and some comments may be shown as answers.
yashpal gohil
Top achievements
Rank 1
yashpal gohil asked on 27 Oct 2009, 05:21 AM
Hi,

I have many column to display, several with long titles, and "No Scrolling" is strict instruction.
I have check all related docs, but don't find a way.

Is there any way so that I can Wrap Column Header ?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 27 Oct 2009, 12:33 PM
Hello yashpal gohil,

It is written at the end of this help topic.

Kind regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
DK
Top achievements
Rank 2
answered on 01 Dec 2009, 05:32 AM
in the help topic i found

Column text properties

WrapText: wraps text if the text is wider than the column width.

TextAlignment: defines the text alignment.

I am using Radgrid HyperlinkColumn.

In this column i want to wrap the text.

Itried ItemStyle-wrap and also tried DataTextFromatString=""

but no result.

Please suggest me  how can i use the above mentioned WrapText property.

will it be used through server side code or simply in the aspx code.

0
Sebastian
Telerik team
answered on 01 Dec 2009, 08:52 AM
Hello DK,

I suppose that you are talking about our ASP.NET AJAX grid while the help topic concerns RadGridView for Winforms. If my assumption is correct, you can examine the approach from this code library entry which explains how to shorten/wrap long urls or strings in grid column cells.

Best,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
yashpal gohil
Top achievements
Rank 1
Answers by
Nick
Telerik team
DK
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or