How to fix the length of the Columns in RadGrid

Thread is closed for posting
3 posts, 0 answers
  1. Siddharth
    Siddharth avatar
    4 posts
    Member since:
    Feb 2009

    Posted 26 Feb 2009 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Feb 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Siddharth
    Siddharth avatar
    4 posts
    Member since:
    Feb 2009

    Posted 27 Feb 2009 Link to this post

    Thanks Princy,
    It sure solved my problem :)
Back to Top