Best practice for RadGrid width

4 posts, 0 answers
  1. Tushar
    Tushar avatar
    25 posts
    Member since:
    Mar 2014

    Posted 21 May 2014 Link to this post

    Hi,
    I am try to update all grids in our project to have consistency in look and feel.
    I am looking for guidance for setting width of RadGrid and Columns. Found this link http://www.telerik.com/community/forums/aspnet/grid/best-practice-for-grid-and-column-widths.aspx but it does not exist now. Is there any other resource available?

    Thanks
    Tushar
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 May 2014 in reply to Tushar Link to this post

    Hi Tushar,

    You can set the width for the columns as shown below, using this method would let you change the width easily.

    ASPX:
    <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name">
       <HeaderStyle CssClass="headerStyle" />
    </telerik:GridBoundColumn>

    CSS:
    .headerStyle
     {
      width: 100px;
     }

    Note that it is not recommended to set ItemStyle-Width for setting column widths. Only HeaderStyle-Width should be used.

    Thanks,
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lance
    Lance avatar
    5 posts
    Member since:
    Oct 2013

    Posted 18 Feb 2015 in reply to Princy Link to this post

    You never addressed the missing link and I am trying to address a grid layout and width problem so I could use this information  :  http://www.telerik.com/community/forums/aspnet/grid/best-practice-for-grid-and-column-widths.aspx
    Many of the linked references that I am attempting to visit within the telerik support forum are now dead links, and many of these were posted by telerik support.

  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 20 Feb 2015 Link to this post

    Hello,

    Indeed the link is dead and we are sorry for that. I have reported this problem to the responsible people and they will take care of  it.

    Regarding the information provided in the link it is related to older version of Telerik UI controls and IE6 and IE7 browsers. Therefore I am not sure that it would be useful for you. If you specify what are the problems you encounter when setting columns widths we would be able to advice you how to resolve them.

    Regards,
    Pavlina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top