bServerSide, iDeferLoading, fnRender, first page of data.

bServerSide, iDeferLoading, fnRender, first page of data.

tommcktommck Posts: 73Questions: 0Answers: 0
edited June 2011 in General
I have a data table, which is using Server-side processing and deferred loading so that I can pre-load the first page.
I am rendering things in a custom way (images, select lists, etc).

How should I be loading the first page of data?

Currently, I get the data as an array of JSON objects and then I call "fnAddData". Whether or not I call it with "true" or "false" for the 2nd parameter, it seems to try to load data from the server.

How do I handle this situation properly?

Tom

Replies

  • tommcktommck Posts: 73Questions: 0Answers: 0
    Of course, I finally get down to asking the question here and find the answer myself...
    I needed to put the first page of data into the "aaData" option field.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    The other option is to have the HTML table with the content in it - the idea being that if you don't have Javascript enabled, you'll get the first page of data immediately.

    Allan
This discussion has been closed.