One Column in datatable is displayed twice
One Column in datatable is displayed twice
tronlives
Posts: 18Questions: 3Answers: 0
Hello Allen,
now almost everything works despite one little thing.
the first column in my table is displayed twice.
the problem disappears when i use the browser scroll bar. But i have to fix it.
I send you an email with attachments to desribe that problem.
Please advice.
Best Regards,
Benjamin
This discussion has been closed.
Answers
Same Problem on a another report page. This time, it is a whole table (Without data content) which appears duplicated.
here is the xhtml source code:
Hi Benjamin,
Thanks for your question and the e-mail with the screenshot. I've just sent a reply to your e-mail, but of rate benefit of anyone else reading this:
It looks like there is a styling problem with the table. Possibly there is a margin-top or position applied to the CSS of the inner table element. Using the "Inspect Element" option of your browser would give the ability to confirm if this is the case.
To be able to debug myself I would need to be able to access the running page so I can see all of the CSS applied.
Regards,
Allan
Hi Allen, i have checked the DOM.
Here is the snippet:
The problem is simple: The cloned FixedHeader exists twice. Within the table where it does belong, but also after "Textarea_simulator". It has been duplicated. Similiar to the problem i had with the tabs. It automatically disappears when i use the browser scrollbar.
Best Regards,
Benjamin
Hi Benjamin,
Are you able to give me a link to the page please? Unfortunately I can't debug what the problem is from the above as it doesn't contain all of the information required.
Thanks,
Allan
Hello Allan, i have narrowed the problem:
The table is duplicated:
See this one:
#
and that one:
Your plugin is creating it twice. I do not see a CSS problem here.
Best Regards,
Benjamin
Hi Benjamin,
The elements are shown on the page twice because you have the FixedHeader plug-in enabled. The way it works is to clone the original table for the fixed elements and place them visually on top of the original table - thus giving the "fixed" aspect.
The reason why I think it is a CSS issue is that something is moving the position of the cloned element - but what exactly is doing that I am not sure.
In your screenshot it shows that you have the first column fixed. Do you have the header fixed as well? If not, I would suggest using FixedColumns rather than FixedHeader, as it is more suited for fixing columns.
Regards,
Allan
Hi Allan, i still have this problem. I have sent you my CSS Files, the generated HTML Stuff and the screenshot.
I hope you can tell me what needs to be changed.
Best Regards,
Benjamin
Hi Benjamin,
Thanks for your e-mail. I sent you a reply shortly after I received it but haven't heard back since. Just adding a comment here in case you see this one first.
Regards,
Allan