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

problem with columns width style¡¡¡¡

2 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ruben
Top achievements
Rank 1
Ruben asked on 19 Aug 2008, 06:52 PM
Hi

When set the width in the columns don't make change

i set width in :
header
footer
item

but i don't see any change.


Ruben Herrera

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 20 Aug 2008, 06:19 AM
Hello Ruben,

Can you try setting the TableLayout as Fixed and then set the widths in the ItemStyle and HeaderStyle properties as shown below.
aspx:
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" AutoGenerateColumns="false" > 
        <HeaderStyle Width="500"/> 
        <ItemStyle Width="500"/> 
        <FooterStyle Width="500"/> 
 <MasterTableView TableLayout="Fixed" > 
 </MasterTableView> 
</telerik:RadGrid> 

Thanks
Princy.
0
Bruno
Top achievements
Rank 2
answered on 20 Aug 2008, 07:06 AM
Actually setting TableLayout to fixed will be enough. If you want to resize columns I suggest you to use HeaderItem-Width. In most cases it is not needed to set all item's width.
Tags
Grid
Asked by
Ruben
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Bruno
Top achievements
Rank 2
Share this question
or