fnUpdate with serverside processing

fnUpdate with serverside processing

banerjeeshamikbanerjeeshamik Posts: 2Questions: 0Answers: 0
edited March 2013 in General
Allan,

I have a realtime ui requirement where a data table will need server-side scroller implementation.
However once the data on screen are painted, some columns need to change at a given frequency - say 5 secs.

So if I am on page 1 and I fetch 100 rows from server , I need to still keep updating say 2 columns (out of total 10 columns)of these 100 records every 5 secs. Can I use fnGet and fnUpdate functions to achieve this?

I see on several discussions you have suggested not to use fnUpdate with serverside processing, however in this case I do not mind if I scroll to page 2 and back to page 1 and get the stale data for those 2 columns, I'll anyways update the same every 5 secs again.

Could you kindly comment...

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    fnUpdate is completely redundant with server-side processing. The data is held at the server, not the client, and fnUpdate is client-side only (since it can't know anything about the server environment). If you have new data to display, call `fnDraw( false )` (the `false` will let a server-side processing table retain the current paging state).

    Allan
  • banerjeeshamikbanerjeeshamik Posts: 2Questions: 0Answers: 0
    Thanks a lot Allan for the suggestion.
This discussion has been closed.