Inline Editor with Server-side processing does a full retrieve after edit

Inline Editor with Server-side processing does a full retrieve after edit

AnthonyVAnthonyV Posts: 37Questions: 7Answers: 0

Link to test case:
https://editor.datatables.net/examples/inline-editing/serverSide.html

Debugger code (debug.datatables.net): Seen in Demo
Error messages shown: N/A
Description of problem:

I am using the Inline Editor to give my clients the ability to edit the grid contents in an excel like manner. I noticed that it was slow and so I started to monitor the traffic to see where the issue was.

I then noticed that the datatables+editor will do a full retrieve of all table rows right after the editor returns from editing a single value. This can be seen in the Browser Dev tools in the Network tab.

This surprised me because the editor was already receiving the updated table row after the post. Tecnically there should not have been any need for a full table retrieve.

I then examined the samples posted and realized that the "Server-side processing" version of the Inline Editor did the same thing.

So my question is.. Why? and how can I stop this?

Anthony

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765
    Answer ✓

    See Allan's response in this thread. I think it will answer your question.

    Kevin

  • AnthonyVAnthonyV Posts: 37Questions: 7Answers: 0

    Thanks that covers my use case perfectly. I did make some attempts at searching for the answer but obviously not enough.

    The following works for me perfectly.

    formOptions: {
      inline: {
        drawType: 'none',
        onBlur: 'submit'
      }                    
    }
    
This discussion has been closed.