Inline Cell edit not working

Inline Cell edit not working

Hello All,

I have been trying to use Datatable Editor without an AJAX datasource, but I am facing issues and it seems like I cant get it to work.

What I have done so far and works:
1. Datatable Edior works with the 'Edit' Button
2. Checkbox selection of rows
3. Editing a whole row(Popup)

What doesnot work:
I need to be able to edit the cells directly, but it seems to give some error and I have spend lot of time but unable to fix it.

Please check my Fiddle and help me fix the single cell editing problem :)

JSFiddle

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 62,994Questions: 1Answers: 10,369 Site admin
    Answer ✓

    Right, because of the Ajax override you are using, it doesn't merge the data from the original row with the newly updated row. You need to return the whole row's data from the Ajax override.

    A way around that is to use the submit option to have Editor submit the entire row's data:

        editor.inline( this, {
            submit: 'allIfChanged'
        } );
    

    https://jsfiddle.net/s8mwot60/28/

    Allan

  • santosh.sahoo@devoteam.comsantosh.sahoo@devoteam.com Posts: 9Questions: 4Answers: 0

    Thanks Allan :)

This discussion has been closed.