Prevent re-draw whole page after Editor submition
Prevent re-draw whole page after Editor submition
Currently, while serverside=true, After editor submited sucessfully, Edited rows wil be reload, then whole current page table will be redraw.
How to prevent whole page table redraw? (like when serverside=false does, only edited rows be re-drawed)
Edited: Refer to https://www.datatables.net/forums/discussion/27536/prevent-whole-ajax-reload-after-inline-editing-instead-redraw-from-return-values, it seem current version has this feature, how to enable it?
Thanks
This question has an accepted answers - jump to answer
Answers
You can use the
drawType
option of theform-options
object to do this. For example:Allan
There are still 2 ajax requests to server made (one for editor, one for table redraw), is there any way to prevent table redraw? (just make ajax for editor to post data, and use this response data to draw edited rows like what
serverSide: false
option does )in this image
http://snag.gy/Go2HP.jpg
Sorry - my mistake. There is no option to use only a single Ajax request when server-side processing is enabled I'm afraid - not yet anyway. This is something I plan to address for 1.6, but at the moment, there are always two Ajax requires made as they are separate mechanisms.
Allan