Multi-column Headers

4 posts, 0 answers
  1. Robert
    Robert avatar
    17 posts
    Member since:
    Jun 2012

    Posted 05 Sep 2012 Link to this post

    Similar to what is offered with the RadGrid, I want to be able to visualy group columns headers with the TreeList.
    Unfortunately, it seems that this feature is not proposed out-of-box and I don't manage to find a way to enligh my quest.

    I tried to customize the treelist. I inherit from it. I override the method RenderBeginTag of the class TreeListHeaderItem to add my own html table row above the generated header row.
    But after this, RadTreeList.get_columns() doesn't work anymore, indeed it bases its logic on this newly added row.

    Is there another way to customize the Treelist headers and allow column spanning?

    Rgds,
    Robert
  2. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 10 Sep 2012 Link to this post

    Hello Robert,

    Currently there is no way to achieve multicolumn headers in RadTreeList without some limitations. A cleaner way would be to use TreeListTemplateColumns where you can declare a header template and display data for more than one column in the item template.
    However, you will still not have a client column reference for all columns, as you will have them grouped by two or more.

    All the best,
    Tsvetina
    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
  4. Chris
    Chris avatar
    17 posts
    Member since:
    Oct 2010

    Posted 31 May 2013 Link to this post

    Hi,

    Could you please describe how to achieve multi column headers. I don't mind if it doesn't have a client reference as I won't be using JavaScript for this.
  5. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 04 Jun 2013 Link to this post

    Hi,

     You can use TreeListTemplateColumn and its templates to modify the layout and mimic multi-column headers as shown in this help topic:
    http://www.telerik.com/help/aspnet-ajax/grid-appearance-customize-gridtemplatecolumn.html
    It refers to the grid but basically the approach is the same in the case of the treelist.

    Regards,
    Marin
    Telerik
    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.
Back to Top