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

[Solved] Is this possible? Grouped Headers, Nested Tabset

2 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Reid
Top achievements
Rank 2
Reid asked on 10 Jan 2012, 03:55 PM
Hi All,

I was wondering if you can have grouped headers?  I have attached a screenshot of the official wireframe a Designer has given me for a search screen.  Bascially two or more columns in their own section with their own group header adjacent to two more columns with their own group header in their own section.

Also the screenshot shows a proposed Tabset in each row.  I am one to lobby for the tabset being on top and switching it's data out everytime the selected customer changes.  Any feedback others may have who have tried this appoach (using Ajax) or any suggestions would be appreciated.

Regards,
Reid

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 13 Jan 2012, 11:06 AM
Hi Reid,

Grouping column headers is not supported out of the box, to achieve it you can create a <table> above the Grid with the required column sizes and styling (it should use the same CSS classes as the Grid itself). The net effect is that it would look as merged headers. Or you can create a <thead> element dynamically on the OnLoad client event of the Grid.
e.g.
function Loaded(e) {
        $(this).find('thead').prepend('<tr>' +
                '<th  class="t-header" colspan="2">' +
                     '<span class="t-link">Group header for first 2 columns</span>'+
                '</th>'+
                 '<th  class="t-header" >'+
                    '<span class="t-link">Single header</span>'+
                '</th>'+
                '<th  class="t-header" >'+
                    '<span class="t-link">Single header</span>'+
                '</th>'   
            '</tr>'
        );
    }
I hope this helps.

Regards,
Petur Subev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Reid
Top achievements
Rank 2
answered on 13 Jan 2012, 01:07 PM
Hi Petur,

Wow!  Thank you for this.


Reid
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Reid
Top achievements
Rank 2
Share this question
or