logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
yavuzs  
#1 Posted : Tuesday, September 18, 2018 2:38:10 PM(UTC)
yavuzs

Rank: Newbie

Groups: Registered
Joined: 8/13/2018(UTC)
Posts: 6
Turkey
Location: Ankara

Thanks: 2 times
Hi,

I am trying to group data table columns.
I have about 50 columns.
First column is id. Will not be groupped.
2-6 columns will be groupped as Group1
7-11 columns will be groupped as Group2
etc..

Here is example output;
Group1 Group2
ID COL1 COL2 COL3 COL4 COL5 COL6 COL7 COL8 COL9 COL10
1 45 65 73 13 32 78 93 101 23 53 ...
2 23 46 87 54 91 82 74 86 62 41 ...
...

Groups are static, first 5 is group1, second 5 is group2, third 5 is group3...
I just want to add a header(with colspan) to the data table.

Is this possible?

Have a good day.


epf  
#2 Posted : Tuesday, September 18, 2018 3:25:11 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 576
Switzerland

Thanks: 7 times
Was thanked: 84 time(s) in 81 post(s)
The colspan could be set manually in the view custom script:
Select the DataTable view, then edit the 'Custom Template' and modify the <thead> to insert your colspan in <th> generation (requires a bit of C#)
or overwrites fully the <thead> if it is harcoded.


thanks 1 user thanked epf for this useful post.
yavuzs on 9/19/2018(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.