Table scrolling based on column number
Table scrolling based on column number
I have a DataTable with dynamic columns: there are some default columns and some are dynamic. When many columns are rendered I did a scrollX on the table. My problem is that I want to enlarge the width of columns only when scrollX is enabled. I used sScrollX = "100%", sScrollXInner = "200%", but the inner width gets applied even if the table does not need the scroll.
Examples:
normal rendering:
With many columns and inner scroll enabled (correct behaviour):
Inner scroll enabled but scrollX not needed (same search as the first one, here I was expecting a normal rendering):
How can I set one configuration working for all cases?
Answers
Hi @Phate01 ,
Thanks for the images. It would helpmore if you could link to a running test case showing the issue so we can offer some help. 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