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

[Solved] Word Wrap v 2011_1_315

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick Rubeski
Top achievements
Rank 1
Patrick Rubeski asked on 01 Apr 2011, 04:00 PM
With Fixed width Columns and resizing - how does one force the cell contents NOT to wrap?

Tx.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 04 Apr 2011, 12:54 PM
Hi Patrick Rubeski,

In order to prevent text wrapping while resizing columns, you need to set the following CSS rule to the Grid:

.t-grid td
{
      white-space: nowrap;
}

In this way the cell content, which does not fit, will be clipped.

Note that the IE7 support of the white-space CSS property is limited and if you must support this browser, you have to use server/client templates and enclose the cell content in a <nobr> element.

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