DataTables 1.8.2 pre-release - testing scrolling
DataTables 1.8.2 pre-release - testing scrolling
Hello all,
I'm approaching the point where I think 1.8.2 is ready for release (a few more niceties to add first :-) ), however I have been doing some work on the table width calculation when using y-scrolling as this was a bit buggy in 1.8.1. I wonder if I could ask anyone who is having issues with scrolling in 1.8.1 to try the 1.8.2 development version (available on the download page: http://datatables.net/download/ ) and let me know if you are still experiencing problems or if this does indeed fix it for you.
Regards,
Allan
I'm approaching the point where I think 1.8.2 is ready for release (a few more niceties to add first :-) ), however I have been doing some work on the table width calculation when using y-scrolling as this was a bit buggy in 1.8.1. I wonder if I could ask anyone who is having issues with scrolling in 1.8.1 to try the 1.8.2 development version (available on the download page: http://datatables.net/download/ ) and let me know if you are still experiencing problems or if this does indeed fix it for you.
Regards,
Allan
This discussion has been closed.
Replies
I would like to know if you figure out something to work around the Table Tools init problem with jQuery UI Tabs plugin : http://datatables.net/forums/discussion/3963/tabletools-on-multiple-tables#Item_12
Thanks
Gust
I am having some scrolling issues (I believe) when using IE9 (haven't tried on another IE versions but n FF and Chrome works fine).
The issue occurs when combining "sScrollX" property, "ex_highlight_row" class and an icon image per row on a table (with a simple tfoot) where its contents are larger than the window size.
The result is that when you move the mouse over the table, it starts adding empty rows at the end.
Here is my sample code to just simply copy, paste and try. I tried to keep it simple.
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
@import "DataTables-1.8.1/media/css/demo_table.css";
$(document).ready(function() {
$('#example').dataTable( {
"sDom": 'rt',
"sScrollX": "100%"
} );
} );
Icon
Field 00
Field 01
Field 02
Field 03
Field 04
Field 05
Field 06
Field 07
Field 08
Field 09
Field 00 Row 01 Text
2636
3.80
0.00
2.88
1
1
0.26
0.40
0.30
Field 00 Row 02 Text
1932
2.80
0.00
12.16
1
2
0.36
0.70
0.70
Field 00 Row 03 Text
1537
2.20
33.12
0.00
1
1
0.90
0.31
-1.09
Field 00 Row 04 Text
1886
2.70
9.60
37.12
3
5
1.50
1.50
0.00
Field 00 Row 05 Text
2935
4.20
0.00
15.57
1
1
0.24
0.30
0.30
Icon
Field 00
Field 01
Field 02
Field 03
Field 04
Field 05
Field 06
Field 07
Field 08
Field 09
[/code]
Please, let me know if you find a workaround for this.
Thanks in advance.
Santiago
@Santiago: That's the oddest thing! Does that happen with 1.8.1 as well? I've just tried it and I'm afraid that I'm unable to reproduce the issue with your example code above. Are you able to put it up on a web-server somewhere to ensure that we are using the same thing?
Thanks,
Allan
I am unable to public the example online, but I prepare a small zip file with the minimum files necessary to run it and see the problem. This can be tested offline.
I also prepare an avi file where I record my desktop showing the code and running the example to help you visualize the problem.
http://dl.dropbox.com/u/1361193/test_datatables.zip
http://dl.dropbox.com/u/1361193/test_datatables.avi
Let me know if this work.
Thanks again,
Santiago
Success! The latest 1.8.2 development version fixes my problem with the table width changing as the scrollbar appears/disappears. Tested (so far) with Chrome, FireFox and IE8 on WinXP.
Thanks!
Larry
Regards,
Allan
Thanks,
Eric
Regards,
Allan
AWESOME !
"oLanguage": { "sInfoThousands": "." }
It doesn't show any point like "1.000.000" for one million.
$('#example').dataTable({ "oLanguage": { "sInfoThousands": "." } } );
[/code]
should do it. And using the nightly of course :-)
Allan
$('#example').dataTable( {
"oLanguage": { "sInfoThousands": "." },
"bJQueryUI": true,
.......................
and from http://www.datatables.net/download/ the newest Nightly-Versions of DataTables (Tue 30th Aug 2011, 18:27)... and the newest jquery 1.6.2 from jquery.com
But no effect to me. There are no seperators. Numbers are still "6433" or "95664"
BTW: in the part "aoColumns": [ ...........
I do use this line (beneath the others), where you can find the number:
{ "sName": "Count", "sTitle": "Count", "bSearchable": false, "sType": "num-html", "asSorting": [ "desc" ] },
What I made wrong?
Thanks,
Allan
[code]
$(document).ready(function() {
var oTable = $('#example').dataTable( {
"sScrollY": "200px",
"sAjaxSource": "media/data/2500.txt",
"sDom": "frtiS",
"bDeferRender": true,
"oLanguage": { "sInfoThousands": "." }
} );
} );
[/code]
I think I would need to be able to see or have a way of reproducing the issue in order to be able to offer any help.
Allan
You've got "oLanguage" defined in there twice. That would be like having:
[code]
var i = 0;
i = 1;
[/code]
and expecting i to be both 0 and 1 :-). Just combine the two oLanguage objects into a single one and that should do it. Or you could put the thousands separator into your language file.
Allan
"oLanguage": { "sInfoThousands": "." },
...from the header. And add this
"sInfoThousands": ".",
to the table_de.txt
I cleared the server and the browser cache.
But STILL no point :-/
Allan
I hope you remember me from earlier in this post. I've tried the latest release to see if my bug was fixed, but it is still there. Were you able to tested it? Were the source code or the screen capture I uploaded helpful?
Thanks again for your time.
Santiago
Is there any problem? I haven't received any feedback from you on this issue since August 17th.
Let me refresh the problem.
I am having some scrolling issues (I believe) when using IE9 (haven't tried on another IE versions but on FF and Chrome works fine).
The issue occurs when combining "sScrollX" property, "ex_highlight_row" class and an icon image per row on a table (with a simple tfoot) where its contents are larger than the window size.
The result is that when you move the mouse over the table, it starts adding empty rows at the end.
I am unable to public the example online, so I prepared a small zip file with the minimum files necessary to run it and show the problem. This can be tested offline.
I also prepared an avi file where I recorded my desktop showing the code and running the example to help you visualize the problem.
http://dl.dropbox.com/u/1361193/test_datatables.zip
http://dl.dropbox.com/u/1361193/test_datatables.avi
Thanks again for your time.
Santiago
Sorry for the delay - I've been rather busy of late!
Thanks for the prompt to look at this - I will do so when I get home this evening. I'm surprised that it doesn't work in IE, but at the same not too surprised :-)
Allan
It seems that you can work around the bug in the browser by adding this to your CSS:
[code]
div.dataTables_scrollBody {
height: 100%;
}
[/code]
Allan
Yet your workaround works fine.
Thank you very much.
Regards,
Santiago