How do I set the width?

2 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 22 Dec 2010 Link to this post

    <telerik:TreeListTemplateColumn>
                           <ItemTemplate>
                               <asp:LinkButton ID="deleteButton" runat="server" Text="delete" CommandArgument='<%# Eval("pdrID") %>' CommandName="Delete" />
                           </ItemTemplate>
                           <ItemStyle HorizontalAlign="Right" Width="50px" />
                       </telerik:TreeListTemplateColumn>

    This doesn't seem to work for me...
  2. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 23 Dec 2010 Link to this post

    Hi Steve,

    The same as with RadGrid, you should set the column width using HeaderStyle-Width, not ItemStyle-Width property of the column:
    <telerik:TreeListTemplateColumn>
        <ItemTemplate>
            <asp:LinkButton ID="deleteButton" runat="server" Text="delete" CommandArgument='<%# Eval("pdrID") %>' CommandName="Delete" />
        </ItemTemplate>
        <ItemStyle HorizontalAlign="Right"/>
        <HeaderStyle Width="50px" />
    </telerik:TreeListTemplateColumn>


    Kind regards,
    Tsvetina
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top