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

[Solved] GridButtonColumn with fixed width wraps cell contents

1 Answer 172 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 23 Apr 2009, 01:43 PM

 

Hi Everyone,

I have grid with MasterTable TableLayout="Fixed" and I'm using static headers, below is the declaration for one of the columns in the grid.

<
telerik:GridButtonColumn CommandName ="Edit" DataTextField="Description" HeaderText="Description"

 

 

UniqueName="Description" SortExpression="Description" HeaderStyle-Width="250px" ItemStyle-Wrap="false" HeaderStyle-Wrap="false" />

As you can see I have explicitly set the width and Wrapping is turned off but the cell contents are still being wrapped.
Why is this happening, if I remove the width setting the cell contents are correctly truncated.
The only way to truncate the cell contents with the width being explicitly set is to add DataTextFormatString="<nobr>{0}</nobr>"
to the column declaration. This feels like yet another hack, shouldn't the ItemStyle-Wrap = false do this?

Many thanks
Antony

 

1 Answer, 1 is accepted

Sort by
0
Antony
Top achievements
Rank 1
answered on 24 Apr 2009, 08:06 AM
This has been submitted as support ticket 207743.
Tags
Grid
Asked by
Antony
Top achievements
Rank 1
Answers by
Antony
Top achievements
Rank 1
Share this question
or