Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am trying to use a datatable that has a header, sub header and 3 rows.

There are 4 sub headers named Event 1..4
Next to each sub header are 3 rows of data

When I click on the sub header, the sub header is collapsing, but the rows from sub header 2 are leaking over

You can see it happening in Fiddler below, Click on the Event1 , then Event2 and you will see the format of the DataTable break.

I would like to see each event collapse into Event with the 3 rows showing scores.

How can i collapse the sub headers and keep the formatting correct.

Thank you


Fiddler project below

http://jsfiddle.net/nc8bt9ss/873/
Posted
Updated 15-Oct-15 10:35am
v2

1 solution

Hi,

http://jsfiddle.net/nc8bt9ss/875/[^]

Please check the above link.

This should solve your issue.

Happy coding.. :)
RelicV
 
Share this answer
 
v2
Comments
Member 12061913 16-Oct-15 9:23am    
Thank you for your quick solution. It is almost working, but I would like the Event 1 to show the 3 rows as opposed to the one. When I collapse the Events, I would like to see the 3 rows per Event.
I tried changing the colspan , but no avail.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900