Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

initComplete function blocks inline edit

$
0
0

Hi
I'm having some of my code blocking for inline edit. My tabel is a lot like Fixed Columns Integration but I have added to extra search fields that specificly filters in just one column each. When I comment out this code, inline edit works. I can't figure out why it blocks for inline edit.

"initComplete": function(settings, json) {
        $('div.toolbar').html('<table><tr><td> Lærer: </td><td align="center"><input type="text" id="laerer_filter"></td><td> Hold: </td><td align="center"><input type="text" id="hold_filter"></td></tr></table>');

        $('#laerer_filter').on( 'keyup change', function () {//filtrerer lærer
        $('#example').DataTable().column( 5 ).search(
        $('#laerer_filter').val()
        ).draw();
        table.cell.blur();//modvirker at indtastning kommer i tal celle - fra Allan
        } );

        $('#hold_filter').on( 'keyup change', function () {//filtrerer hold
        $('#example').DataTable().column( 6 ).search(
        $('#hold_filter').val()
        ).draw();
        table.cell.blur();//modvirker at indtastning kommer i tal celle - fra Allan
        } );
}

I've used som html code for input to filter for 'laerer' in column 5 and for 'hold' in column 6. The two input cells are next to the datatable search field, and the 3 inputs can be combined in filtering, so it works exactly as I would want it to. But somehow it blocks for inlie edit.
Any ideas?
Best regards
Claus


Viewing all articles
Browse latest Browse all 2364

Trending Articles