TemplateColumn exact width

3 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    121 posts
    Member since:
    Jul 2010

    Posted 06 Sep 2011 Link to this post

    Hello,
    Is there a way to set an exact width for template column?
    Thank you.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Sep 2011 Link to this post

    Hello Dmitry,

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

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 06 Sep 2011 Link to this post

    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).
Back to Top