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

TemplateColumn exact width

2 Answers 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 06 Sep 2011, 11:33 AM
Hello,
Is there a way to set an exact width for template column?
Thank you.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Sep 2011, 11:49 AM
Hello Dmitry,

Try setting ItemStyle of GridTemplateColumn.
aspx:
<telerik:GridTemplateColumn HeaderText="EmployeeID" DataField="EmployeeID" UniqueName="EmployeeID" >
            <ItemStyle Width="500px" />
</telerik:GridTemplateColumn>

Thanks,
Princy.
0
Kiara
Top achievements
Rank 1
answered on 06 Sep 2011, 12:56 PM
I believe the better option is to set HeaderStyle > Width for the column instead of ItemStyle > Width (the first sets global width for the column, instead of cell width).
Tags
Grid
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kiara
Top achievements
Rank 1
Share this question
or