DataTables 1.7.5 released
DataTables 1.7.5 released
allan
Posts: 61,972Questions: 1Answers: 10,160 Site admin
Hello all,
I'm very pleased to be able to announce the availability of DataTables v1.7.5! There are a number of items worth noting in this new release, but the primary one is the re-written sorting algorithm that DataTables uses. You'll find it to be much more efficient, particularly in IE.
Other improvements include a number of bug fixes and tidy up points, as well as the introduction of a new initialisation parameter bScrollAutoCss - this allows you to control the scrolling styles via CSS rather than having DataTables do it automatically. Also of note is that the column visibility options will now take into account multiple rows in the header and footer.
As always the download and release notes are here:
- Download: http://datatables.net/releases/DataTables-1.7.5.zip
- Release notes: http://datatables.net/download
And finally, if you are using DataTables and find it useful, please do consider making a donation. These donations allow me to continue developing DataTables: http://datatables.net/donate .
Enjoy!
Allan
I'm very pleased to be able to announce the availability of DataTables v1.7.5! There are a number of items worth noting in this new release, but the primary one is the re-written sorting algorithm that DataTables uses. You'll find it to be much more efficient, particularly in IE.
Other improvements include a number of bug fixes and tidy up points, as well as the introduction of a new initialisation parameter bScrollAutoCss - this allows you to control the scrolling styles via CSS rather than having DataTables do it automatically. Also of note is that the column visibility options will now take into account multiple rows in the header and footer.
As always the download and release notes are here:
- Download: http://datatables.net/releases/DataTables-1.7.5.zip
- Release notes: http://datatables.net/download
And finally, if you are using DataTables and find it useful, please do consider making a donation. These donations allow me to continue developing DataTables: http://datatables.net/donate .
Enjoy!
Allan
This discussion has been closed.
Replies
bStateSave doesn't seem to work for selections or checkboxes.
Text input is saved and restored on reload but not on re-entering the url.
I am using SeaMonkey/2.0.11.
I am using the dom-sort example code with an added "BStateSave".
I have potentially a very large number of tables I want to bStateSave.
Are there any limits?
If you check the documentation you should notice that only mentions sorting/filtering etc: http://datatables.net/usage/features#bStateSave
I would guess that the fact that input text is saved and restored on reload is something that your browser is caching. If you try an hard refresh they will probably be empty.
I am using the example that uses a JSON file. I just modified it to use a file I had saved to a WebLogic server.
First problem is if I do not add an alert box to the code after the table is initialized prior to adding some classes and such, the table is never rendered.
Second issue, if I add the alert, the table renders but the class code and footers are never added. Those functions fail.
This does not happen in IE6 or IE7.
Here's the code...
[code]
var oTable;
var oTableLocal;
var jsonFilePath;
$(document).ready(function() {
$('#proceedButton').click(function() {
if(validateForm()) {
$("#selectedButton").val("OK");
$("#theForm").submit();
}
else {
var id = "#emptyFieldsMsg";
$(id).dialog('open');
$(id).dialog({
bgiframe: true,
modal: true,
resizable: false,
buttons: {
"Close": function(){
$(this).dialog('close');
}
}
});
}
});
$("#cancelButton").click(function() {
$("#selectedButton").val("cancel");
$("#theForm").submit();
});
jsonFilePath = $("#jsonFile").val();
oTable = $("#example").dataTable( {
"bProcessing": true,
"sAjaxSource": jsonFilePath,
"oLanguage": {
"sSearch": "Search all columns:"
}
});
alert('Click to Proceed.');
oTableLocal = oTable;
try{
$(oTableLocal.fnGetNodes()).click( function() {
if ( $(this).hasClass('row_selected') )
$(this).removeClass('row_selected');
else
$(this).addClass('row_selected');
} );
}
catch(e) {
alert("error: " + e.message);
}
try{
/* Add a select menu for each TH element in the table footer */
$("tfoot th").each( function ( i ) {
this.innerHTML = fnCreateSelect( oTableLocal.fnGetColumnData(i) );
$('select', this).change( function () {
oTableLocal.fnFilter( $(this).val(), i );
} );
} );
}
catch(e) {
alert("error: " + e.message);
}
} );
function fnGetSelected()
{
var aReturn = new Array();
var aTrs = oTableLocal.fnGetNodes();
for ( var i=0 ; i
Allan
Could you please provide some advice on how to use the new bScrollAutoCss? I really would like my verticle scrollbars to be visible all the time regarless.
Thanks
Certainly - something like this should do the trick for you:
[code]
div.dataTables_scrollHead {
position: relative;
overflow: hidden;
}
div.dataTables_scrollBody {
overflow-y: scroll;
}
div.dataTables_scrollFoot {
overflow: hidden;
}
[/code]
Allan
Unfortunately that didn't work for me. Do I need to do anything with the initialisation parameter bScrollAutoCss?
Cheers
Paul
Allan