Editing a table without the "edit" button

Editing a table without the "edit" button

volnistii11volnistii11 Posts: 49Questions: 16Answers: 0

Hello, I made a table in which you can change the values without clicking the "edit" button, but by clicking on the table field (according to the method from the manul). Also in my table I use the left joining by metude from the link below.
https://editor.datatables.net/examples/simple/join.html

I combined this all, all the fields are correctly changed, except for one field, which is used in the left attachment, I can only change it using the "edit" button. Is there any way to fix this?

That is, the event that is used in the method below does not work on this field.

              // Activate an inline edit on click of a table cell
             $('#empTable').on( 'click', 'tbody td', function (e) {
             editor.inline( this, {

    buttons: { label: '>', fn: function () { this.submit(); } }
    }           );
            } );

Answers

  • volnistii11volnistii11 Posts: 49Questions: 16Answers: 0


    When using the "change" button, everything is correct.

  • volnistii11volnistii11 Posts: 49Questions: 16Answers: 0

    I am trying to do the same, but in the table itself. The table row is simply highlighted.

  • volnistii11volnistii11 Posts: 49Questions: 16Answers: 0

    Again, the rest of the fields are working correctly.

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Could you link to your page, please, as that would help debug this. If not, could you post the full code, both client and server,

    Colin

  • allanallan Posts: 61,722Questions: 1Answers: 10,108 Site admin

    Also, have a look at this example which shows inline editing with a dropdown.

    Allan

This discussion has been closed.