Something wrong about "dataTables_wrapper"
Something wrong about "dataTables_wrapper"
Hello,
when I traced my html code,I found the following code:
[code]
Showing 1 to 1 of 1 entries
Showing 1 to 3 of 3 entries
[/code]
So,there are two subTable_wrapper and two subTable_info and two subTable_paginate shows in the datatable.
How can I fix that?
Thanks a lot.
Andy
when I traced my html code,I found the following code:
[code]
Showing 1 to 1 of 1 entries
Showing 1 to 3 of 3 entries
[/code]
So,there are two subTable_wrapper and two subTable_info and two subTable_paginate shows in the datatable.
How can I fix that?
Thanks a lot.
Andy
This discussion has been closed.
Replies
My page is just like this
http://jsfiddle.net/2DCzp/
Allan
thanks for you reply.
Andy
sTable = $('#sTable').dataTable({
"bDestroy": true,"bPaginate": false,
"bAutoWidth": false,"bFilter": false,
"bSort": false,"bInfo": true,
"sAjaxSource": 'loadInstockDetails.htm?isid='+isid,
"sAjaxDataProp": "instock.instockdetails",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.getJSON( sSource, aoData, function (json) {
/* Init Instock General information */
$("#disdate").html(json.instock.isdate);
if(json.instock.supplier!=null) $("#dsupplier").html(json.instock.supplier.name);
else $("#dsupplier").html("");
$("#dpsno").html(json.instock.psno);
$("#dquantity").html(json.instock.quantity);
$("#ddeliverPerson").html(json.instock.deliverPerson);
$("#dplateNo").html(json.instock.plateNo);
$("#ddescription").html(json.instock.description);
$("#dmemo").html(json.instock.memo);
fnCallback(json);
});
},
"aoColumns": [
{ "mData": "isdid","sWidth": "0%","bVisible": false },
{ "mData": "product.name", "sDefaultContent":"","sWidth": "25%"},
{ "mData": "quantity", "sWidth": "10%", "sClass": "alignRight" },
{ "mData": "skidNo", "sWidth": "10%" },
{ "mData": "description", "sWidth": "45%" },
{ "mData": "valuelist.propertyName","sDefaultContent":"", "sWidth": "10%" }
] ,
"fnDrawCallback": function ( oSettings ) {
$('#sTable tbody tr').each( function () {
$(this).click(function () {
if ( $(this).hasClass('row_selected')!=true ) {
$(this).addClass('row_selected').siblings().removeClass('row_selected');
}
});
});
}
});
[/code]