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

Text wrapping on column/row resize

4 Answers 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 28 Aug 2008, 08:39 AM
Hi,

I am using RadGrid in my application. RadGrid is supporting to Resize the column/row dynamically. But on column/row size increse, text in each field is not adjusting properly.

Is there any option to wrap the text based on column/row size adjustment ?
(I tried with  <ItemStyle wrap="True"/>  but it could not do so as expected)

Thanks in advance,
Balaji Velasiri.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Aug 2008, 10:57 AM
Hi Balaji,

The Wrap property is true by default. But for the wrap to take place properly make sure that the cell text contains white space in between. Also set the TableLayout to Fixed so that wrapping will occur in accordance with column resizing.

ASPX:
 <MasterTableView DataSourceID="SqlDataSource1" TableLayout="Fixed"   > 
             


Thanks
Shinu.
0
Daniel
Telerik team
answered on 29 Aug 2008, 02:48 PM
Hello Balaji,

If your cell content is very long and there are no spaces in it your text can break the cells and leave the cell border. This is browser behavior and it occurs in all browsers except Internet Explorer. Possible workaround is to set TableLayout to fixed as suggested below. This will enable long text to be clipped if there are no empty spaces.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
TeleBart
Top achievements
Rank 1
answered on 20 Jan 2009, 02:59 PM
Hi there,
I am also using RadGrid and Resize column works fine in Fire Fox but not in IE. When I go over with mouse indicatar on header's vertiacal bar, nothing is happening.  

please help

Bart


0
Dimo
Telerik team
answered on 21 Jan 2009, 10:49 AM
Hi Bart,

It seems that column resizing does not work in IE, because some Javascript calculations (related to positioning) do not work correctly when RadGrid is placed inside an absolutely positioned container. We will research this. Sorry about the inconvenience. I have updated your Telerik points for this bug report.

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Balaji
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel
Telerik team
TeleBart
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or