Disable for editing only One cell.

Disable for editing only One cell.

Talalaev-iaTalalaev-ia Posts: 2Questions: 1Answers: 0
edited February 2015 in Free community support

I am interested in purchasing DataTables Editor for very specific task.
But before I must know, is it really possible to disable only one cell in Table (tab between columns, not inline editing) dynamically?

for instance: https://editor.datatables.net/examples/inline-editing/tabControl.html when we try to edit some cell - show a message to the client.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    Answer ✓

    Sure - the editing is triggered by inline() which you call. For example in the example you linked to it uses:

        $('#example').on( 'click', 'tbody td:not(:first-child)', function (e) {
            editor.inline( this, {
                submitOnBlur: true
            } );
        } );
    

    Note that the selector excludes the first column. Also noted that in the tab handling code it will skip over the first column.

    If you haven't tried Editor yet, I would encourage you to download the trial and make sure it does what you want :-). It sounds like it should be quite possible.

    Allan

  • Talalaev-iaTalalaev-ia Posts: 2Questions: 1Answers: 0

    Thanks a lot for your quick responce!
    It works!

    DataTables looks amazing!!

    =) Ivan.

This discussion has been closed.