Don't Call fnDraw on initialization

Don't Call fnDraw on initialization

kcsobokcsobo Posts: 2Questions: 0Answers: 0
edited March 2011 in General
Is it possible to initialize a table but not draw it? I'm experiencing a unique issue and it would help to handle the loading on my own.

Using a server side load and for some reason the datatable doesn't seem fully initialized (doesn't pass all the parameters through post URL) when it tries that initial post, though after wards I can reload the table and it works.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    At the moment no - the table will always draw when you do initialisation. Self loading can be done using fnServerData, but it will still be called at first draw. It might be more instructive to know why the table isn't fully initialising. What are the symptoms?

    Allan
  • kcsobokcsobo Posts: 2Questions: 0Answers: 0
    I'm not entirely sure the root of the problem yet but my first post isn't sending any of the Datatables attributes (iDisplay, iColumns, etc). I'll probably just set some kind of global variable telling me if it is initialized and then check that in the fnServerData
This discussion has been closed.