Does Inline Editor Work on Mobile?

Does Inline Editor Work on Mobile?

aungkoheinaungkohein Posts: 38Questions: 5Answers: 0

Hi guys,

I tried using google chrome on mobile. When I press on the cell, it does not activate the keypad. Does Datatables support inline editing on mobile?

Replies

  • allanallan Posts: 61,740Questions: 1Answers: 10,111 Site admin

    I've just tried this page in Chrome / Android and it seems to work no problem. Can you give me a link to a page showing the issue?

    Allan

  • aungkoheinaungkohein Posts: 38Questions: 5Answers: 0

    Hi @allan,

    the example you mentioned worked on mobile. Thank you!

    I was using this instead:

    // Activate an inline edit on click of a table cell
     $('#example').on( 'click', 'tbody td.editable', function (e) {     
    
         editor.inline( this );
    
         if(e.which == 9) {                                      
            e.preventDefault();
            var $input = $('form input');
            $input.eq( $input.index( this ) + 1 ).focus();
            table.keys.enable();
        }
        clearInterval( timer );
     });
    

    I changed to 'click', 'tbody td:not(:first-child), however, when I pressed on TAB key, it does not tab out of editing mode. What code am I missing here? =)

  • aungkoheinaungkohein Posts: 38Questions: 5Answers: 0
    edited February 2019

    deleted.

This discussion has been closed.