Prevent re-draw whole page after Editor submition

Prevent re-draw whole page after Editor submition

duongthiencb1991@gmail.comduongthiencb1991@gmail.com Posts: 2Questions: 1Answers: 0
edited January 2016 in Editor

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

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    You can use the drawType option of the form-options object to do this. For example:

    editor.inline( this, {
      drawType: 'page'
    } );
    

    Allan

  • duongthiencb1991@gmail.comduongthiencb1991@gmail.com Posts: 2Questions: 1Answers: 0

    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

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Answer ✓

    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

This discussion has been closed.