Don't draw on create

Don't draw on create

matshofmanmatshofman Posts: 3Questions: 0Answers: 0
edited July 2010 in General
Hi,

I have the problem that when I declare my datatable it instantly draws itself but I want it to wait until I call fnDraw() myself.

Is there a way to do that?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    No there isn't a way of stalling the draw like this. I've assumed that you would want to have the draw occur when the initialisation is done. Probably fairly easy to modify the code to stop that happening if you wish though.

    Allan
  • matshofmanmatshofman Posts: 3Questions: 0Answers: 0
    edited July 2010
    I already tried to not set the source file until I want to call the fnDraw() function but it will still try to draw itself and because it has no source it throws a 404 error.

    Solved it, used an if statement in the
    "fnServerData": function (sSource, aoData, fnCallback) { ... }
This discussion has been closed.