How can I disable the inline editor for specific colums?

How can I disable the inline editor for specific colums?

LairdTurnerLairdTurner Posts: 7Questions: 3Answers: 0

I want an table where I can only inline edit some colums, not all. And I don't want set the readonly type. How can I achieve that?
How can I disable the inline editor for specific columns?

Answers

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

    How are you currently applying the inline editing? Something like:

    $('#myTable').on( 'click', 'tbody td', function () {
      editor.inline( this );
    } );
    

    ?

    If so, you would just make the selector more selective. Perhaps adding a class (such as editable to the editable columns using columns.className is the easiest option to modify the selector for that class.

    Allan

This discussion has been closed.