Is any possible update only assigned rows in server side

Is any possible update only assigned rows in server side

ihuangmxihuangmx Posts: 26Questions: 9Answers: 1

I found that when I use editor to create or update the row in serve side mode and use drawType: 'page', option, it it will refetch all the data each time, I think this is slow and waste, So how can I update only the changed row ?

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @ihuangmx ,

    It does that as the edit may change the ordering/paging/search results - the client needs to ask the server for the new page data based on the result of the edit. I don't think there's anyway to avoid that.

    Cheers,

    Colin

  • ihuangmxihuangmx Posts: 26Questions: 9Answers: 1

    @colin thanks for sharing, I want to know If I only change some field and will keep the ording、paging and search, It is any possible to manual update the row data ?

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    You could set the drawType parameter to be none, which will force DataTables not to redraw the table (and thus not make that extra Ajax request). However, the significant draw back to that is that the new data cannot be resorted, filtered or anything else exactly as Colin says. Therefore the table state would be effectively invalid.

    Allan

This discussion has been closed.