Datable shrink when Child rows(html table) are increasing,
Datable shrink when Child rows(html table) are increasing,
karthik6244
Posts: 3Questions: 1Answers: 0
I am following this link "https://datatables.net/examples/api/row_details.html", when the parent record is clicked, I am showing a dynamically generated html table as mentioned in the above link. My table is having around 15 columns. So when I click on +(plus) icon inner html expands however jquery datatable doesn't expand. This behavior is odd to the customer, any technical solutions to overcome this challenge.
This discussion has been closed.
Answers
Do you mean the child row is displayed but the parent rows below don't move down?
I Don't recall anyone else having this problem. We would need to see a link to your page or a test case replicating the issue.
Wonder if you are getting an error causing the parent rows to not move down. Check your browser's console for errors.
Kevin
Hello kthorngren, Actually what I mean is When I click the plus Icon
1) I am showing a table inside with 13 columns then width of the table is increasing dynamically, but jQuery datatable width is not increasing, that is the issue,
Code:-
Inner table on + Click,
CSS:-
Page CSS (Where the issue is coming)
Main CSS :-
Before clicking + Icon
After clicking + Icon
Thanks,
That's a lot of code. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin