fnFooterCallback & jEditable
fnFooterCallback & jEditable
Hi there,
I have a table which is using both fnFooterCallback & jEditable. When I update a cell in the table via jEditable, which is used to calculate a value in the footer, callback does not update the footer.
Is there a way to trigger this?
Matthew
I have a table which is using both fnFooterCallback & jEditable. When I update a cell in the table via jEditable, which is used to calculate a value in the footer, callback does not update the footer.
Is there a way to trigger this?
Matthew
This discussion has been closed.
Replies
The quickest and possibly best way would probably be to simply call fnDraw(). You can pass 'false' as the first argument if you don't want the table to be resorted / filtered based on the new data.
Regards,
Allan
Thanks for your response. I added the following code, which is firing as I can see the message in console log. No change occurs to the footer however.
[code]
$(function(){
$('#table1').change(function() {
console.log("Detected change to table");
oTable.fnDraw(false);
});
});
[/code]
Any other ideas?
Muay.
Very odd - if you put a console.log into your footer callback, I presume that isn't showing up? What if you change it to fnDraw(); (i.e. no 'false'). The footer call back really should be called on every call to fnDraw - and I can't see a code path which wouldn't call it.
Do you have a link you can put up?
Regards,
Allan
datatable definition was missing
"bServerSide": true