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

How to fix the length of the Columns in RadGrid

2 Answers 83 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Siddharth
Top achievements
Rank 1
Siddharth asked on 27 Feb 2009, 05:06 AM
Hi,

I have a Rad Grid, which causes a horizontal scroll bar to appear when the data in it large. I need to fix the column width and also wrap the text such that the text come in multiple lines instead of a single line.


Regards
Siddharth

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Feb 2009, 06:04 AM
Hello Siddarth,

Check if you have set the TableLayOut property for the MasterTableViiew to Fixed. If not try setting it to fixed, which will automatically set the width for columns and also wrap the data.
aspx:
<telerik:RadGrid ID="RadGrid3" DataSourceID="SqlDataSource3" AutoGenerateColumns="true"  AllowPaging="True" PageSize="3"  runat="server" > 
   <HeaderStyle Width="100"/>      
       <MasterTableView TableLayout="Fixed"  > 
          ....

Thanks
Princy.
0
Siddharth
Top achievements
Rank 1
answered on 27 Feb 2009, 06:11 AM
Thanks Princy,
It sure solved my problem :)
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Siddharth
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Siddharth
Top achievements
Rank 1
Share this question
or