sScrollY creates duplicate thead/tr
sScrollY creates duplicate thead/tr
I can't get rid of the duplicate header created when sScrollY is enabled on my table.
I see in the code that css height is set to 0px in the thead's tr and td's, but the row still shows (chrome, and firefox 4).
tried using display: none, but that clobbers the column widths needed to align the header and the table columns.
anyone else having this issue, or have a solution?
I see in the code that css height is set to 0px in the thead's tr and td's, but the row still shows (chrome, and firefox 4).
tried using display: none, but that clobbers the column widths needed to align the header and the table columns.
anyone else having this issue, or have a solution?
This discussion has been closed.
Replies
Allan
Thanks for the reply, I'll keep searching.
Thanks!
Allan
Now that I found that, I can remove those classes from the hidden thead/tr columns and shrink that row.
Just about every operation I did (moving columns, sorting by column, etc) refreshed that row with the css classes so the row kept coming back. Rather than hook into various events and remove the sorting* classes myself, I gave up on the :after and went back to using the image indicators.
[one of the reasons I wanted to ditch the images is that the set I downloaded had some bad transparency or bit-depth - they were indexed PNG-8 or something. I like that the photoshop file was also included so I could quickly remake the images in PNG-24, plus gave me an excuse to experiment with the colors.]
I think you are right about the icons that DataTables comes with by default - they are a bit rubbish. I created a couple of new ones for this blog post which can be easily modified: http://datatables.net/blog/Creating_beautiful_and_functional_tables_with_DataTables . Or just any image can be used for the background. Using the jQuery UI option also gives a few more options for the styling since it adds a span element - even if you don't actually use a jQuery UI theme.
Allan
Your datatables are a brilliant product and the plugins and options are pretty astounding.
I'm using another package, J Editable or something, to allow users to modify cells in my tables, and I'll use ajaxian methods to update server tables. If your package did that, I wouldn't need anything else.
At this point, the most trouble I'm having with the tables is there's some jittering when I'm using a fixed column on the left side and scrolling the other columns. I'm pretty sure it's a javascript performance issue that will get smoother over time (and your example tables look good enough, so my css formatting options might be exascerbating it a little). At some point I'll have the page(s) up on a server so you can take a look if you're interested.
Thanks for the help. I expect I'll be using these tables for a long time. The only thing better would be for browsers/w3c to offer dynamic table elements.
There is a plug-in for DataTables from Jovan Popovic which wraps up jEditable to try and make the integration of it with DataTables a little easier: http://code.google.com/p/jquery-datatables-editable/ . I'll also be adding a blog post soon about how to roll your own little inline editing features in DataTables.
Allan