Datatable with Footable

Datatable with Footable

xilaxxilax Posts: 10Questions: 0Answers: 0
edited March 2014 in General
I really need to know how I can use footable with datatable pagination. I've tried all different method to make this work...
When I paginate, the table expand to the full columns and not footable.

[code]
"aoColumns": [
null,
null,
{"bSortable": false},
{"bSortable": false}
],
"fnPreDrawCallback": function(oSettings){
contactFootable();
},
"fnRowCallback": function(oSettings){
contactFootable();
},
"fnDrawCallback": function(oSettings){
contactFootable();
},
"oLanguage": {
[/code]

[code]
contactFootable = function(){
if(jQuery().footable){
$('#contactsData').footable().trigger('footable_resize');//.trigger('footable_redraw')
}
}
[/code]

Any help?

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    I'm not aware of anyone having done the work required to integrate DataTables with FooTables directly. However, have a look at this thread which basically adds similar functionality to DataTables: https://datatables.net/forums/discussion/16339/responsive-datatables-with-footable-like-behavior/p1

    Allan
This discussion has been closed.