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

Multi-column Headers

3 Answers 139 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 05 Sep 2012, 04:17 PM
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

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 10 Sep 2012, 11:23 AM
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.
0
Chris
Top achievements
Rank 1
answered on 31 May 2013, 02:47 PM
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.
0
Marin
Telerik team
answered on 04 Jun 2013, 08:01 AM
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.
Tags
TreeList
Asked by
Robert
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Chris
Top achievements
Rank 1
Marin
Telerik team
Share this question
or