Rank: Newbie
Groups: Registered
Joined: 8/13/2018(UTC) Posts: 6 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.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 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.
|
1 user thanked epf for this useful post.
|
|
|
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.