Call fnDraw() after a column sort

Call fnDraw() after a column sort

rovi22rovi22 Posts: 2Questions: 0Answers: 0
edited June 2012 in General
UPDATE: Resolved. I was using Scroller v1.0.2. I updated to 1.0.3.dev and this fixed the problem.

I'm really new to this and I'm having a problem with the sort feature. I have a large data set that has around 20K records. if i scroll down, i'm using the scroller plugin, and then sort a column the table goes blank... I created a button that can call fnDraw on the table and when i click that it redraws the table correctly sorted. below is the setup of my table. Is there an way to automatically call fnDraw after the sort has returned? Or is there a problem with my setup below? Thanks for any help!

[code]
$(document).ready(function () {
var oTable = $('#Example_table').dataTable(
{
"sDom": "rtiS",
"bDeferRender": true,
"bScrollInfinite": true,
"sScrollX": "700px",
"bScrollCollapse": true,
"sScrollY": "200px",
"bAutoWidth": false,
"bProcessing": true,
"bServerSide": true,
"bUseRendered": false,
"bSort": true,
"oLanguage": {
"sSearch": "Search:"
},
"sAjaxSource": "http://example.com/GetSomeData",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax({
"dataType": 'jsonp',
"url": sSource,
"data": aoData,
"type": "post",
"success": fnCallback
});
}
});
});
[/code]
This discussion has been closed.