Column width reinitialized on collapse/expand

2 posts, 0 answers
  1. Damien
    Damien avatar
    17 posts
    Member since:
    Dec 2012

    Posted 14 Feb 2013 Link to this post

    Hello,

    I use a TreeList with autogenerated columns. I allow the column resize.
    <telerik:RadTreeList runat="server" ID="RadTreeList1"
                                                            Skin="Telerik"
                                                            AutoGenerateColumns="true"
                                                            DataKeyNames="DataKey" ParentDataKeyNames="ParentDataKey"
                                                            AllowSorting="true"
                                                            ItemStyle-CssClass="RowStyle"
                                                            AlternatingItemStyle-CssClass="AlternatingRowStyle"
                                                            HeaderStyle-CssClass="HeaderStyle"
                                                            SelectedItemStyle-CssClass="SelectedRowStyle"
                                                            OnAutoGeneratedColumnCreated="RadTreeList1_OnColumnCreated"
                                                            Visible="false"
                                                            >
                                            <ClientSettings>
                                               <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                               <Resizing AllowColumnResize="true" ResizeMode="NoScroll" />
                                            </ClientSettings>
     
                                       </telerik:RadTreeList>


    So the final user can resize the columns, but, if he expands or collapses a node, the column widths are reinitialized.
    How could I keep the width modifications.
    Thanks by advance.
    Regards,
    Damien
  2. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 19 Feb 2013 Link to this post

    Hi Damien,

    After a thorough investigation, our developers came to the conclusion that this behavior is a bug. You could track the process in our Ideas & Feedback portal. Note that this behavior is observed only when AutoGenerateColumns property is set to true. As a work around you could manually implement your columns and disable auto generated columns.
    Additionally I updated your account with Telerik points.

    Regards,
    Kostadin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top