fnFooterCallback & jEditable

fnFooterCallback & jEditable

muaymuay Posts: 4Questions: 0Answers: 0
edited February 2010 in General
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

Replies

  • allanallan Posts: 63,280Questions: 1Answers: 10,425 Site admin
    Hi Matthew,

    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
  • muaymuay Posts: 4Questions: 0Answers: 0
    Hi Alan,

    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.
  • allanallan Posts: 63,280Questions: 1Answers: 10,425 Site admin
    Hi 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
  • btzbtz Posts: 22Questions: 0Answers: 0
    I had the same thing,
    datatable definition was missing
    "bServerSide": true
This discussion has been closed.