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

[Solved] dont wrap

3 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Teoman
Top achievements
Rank 1
Teoman asked on 24 Nov 2009, 11:54 PM
hi,
i have radgrid.i use nvarchar for dataype of which i trying to show with radgrid.i change width but i cant fix it.also i use DataFormatString="<nobr>{0}</nobr>" .it looks like this.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 25 Nov 2009, 09:44 AM
Hi Teoman,

Please add the following CSS rule to your website in order to make overflowing text clip when the MasterTableView's layout is set to "Fixed". This is included in the latest versions of RadGrid.


/* RadGrid Q3 2008 and earlier */
.GridHeader_SkinName,
.GridRow_SkinName  td,
.GridAltRow_SkinName  td
{
           overflow: hidden ;
}


/* RadGrid Q1 2009 and later */
.RadGrid  .rgHeader,
.RadGrid  .rgRow  td,
.RadGrid  .rgAltRow  td
{
           overflow: hidden ;
}


Best wishes,
Dimo
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
Teoman
Top achievements
Rank 1
answered on 26 Nov 2009, 02:46 PM
hi dimo,

i dont wanna hide text.i want it to continue in second line.
0
Dimo
Telerik team
answered on 26 Nov 2009, 03:15 PM
Hello Teoman,

Well, normally browsers do not split single words to parts. You can force IE to do that with the word-break CSS property (using the selectors from my previous post), but this will not work across all browsers.

http://www.css3.com/css-word-break/

Regards,
Dimo
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
Grid
Asked by
Teoman
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Teoman
Top achievements
Rank 1
Share this question
or