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

Best practice for RadGrid width

3 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tushar
Top achievements
Rank 1
Tushar asked on 21 May 2014, 07:34 AM
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

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 May 2014, 12:44 PM
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
0
Lance
Top achievements
Rank 1
answered on 18 Feb 2015, 02:53 PM
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.

0
Pavlina
Telerik team
answered on 20 Feb 2015, 10:38 AM
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.

 
Tags
Grid
Asked by
Tushar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Lance
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or