Making Datatable Jeditable (again) after a Datatable refresh

Making Datatable Jeditable (again) after a Datatable refresh

donzdonz Posts: 6Questions: 0Answers: 0
edited July 2012 in DataTables 1.9
My Datable is ajax enabled and is initially editable but after doing a myTable.fnReloadAjax it is no longer editable. How can I make Jeditable persistent with my Datatable after a table reload.

Thanks,
Don

Replies

  • donzdonz Posts: 6Questions: 0Answers: 0
    Hi all,

    I have found a solution but it would still be nice to hear from experienced Datatables users on the quality of this solution.

    If you add the Jeditable initialisation to the fnDrawCallback of your Datatable initialisation then your datatable will be editable after over multiple edits.

    [code]
    "fnDrawCallback": function (oSettings) {
    jQuery('td', this.fnGetNodes()).editable(...
    [/code]

    Cheers,

    Don
This discussion has been closed.