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

How to make RadGrid Cells Wrappable?

5 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pooya
Top achievements
Rank 1
Pooya asked on 04 May 2011, 02:13 PM
I have a RadGrid with 10 columns.

The horizontal scrollbar appears whereas I'd need the column data to be wrappable so that e.g. "FirstName Surname" appears in 2 lines rather than one line so that we won't need to have the scrollbar.

How could it be done?

Many thanks,

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 May 2011, 02:39 PM
Hi Pooya,

Go through the forum thread below:
http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-wrap-the-text-in-cell.aspx

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Pooya
Top achievements
Rank 1
answered on 04 May 2011, 02:57 PM
Thanks.

I set the TableLayout="Fixed"
but the problem is that only half of the columns are shown now.

I set a 
 <HeaderStyle Width="30px" />

for each column and it works.

How would it be possible to reduce the grouping column and the indenting space for each group?

Many thanks,
0
Pavlina
Telerik team
answered on 06 May 2011, 02:50 PM
Hi Pooya,

In order to set column width, set TableLayout as "Fixed" and then set HeaderStyle Width for each column.
Regarding the row height you can examine the following link:
http://www.telerik.com/community/forums/aspnet-ajax/grid/row-height-revisited.aspx#702997

Greetings,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Pooya
Top achievements
Rank 1
answered on 09 May 2011, 03:07 PM
I set it to have the Fixed TableLayout.

The cell texts are wrapped as expected but only in IE not in FireFox.

Any help?
0
Pavlina
Telerik team
answered on 11 May 2011, 05:04 PM
Hi Pooya,

Firefox browser wraps the text by default. If this does not happen in your case, then you are either using too long words (which browsers do not break by default), or there is something else, which prevents it. Please send a simple runnable demo if you need further assistance.

All the best,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Pooya
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Pooya
Top achievements
Rank 1
Share this question
or