bDeferRender doesn't work with mRender?

bDeferRender doesn't work with mRender?

razor1999razor1999 Posts: 2Questions: 0Answers: 0
edited December 2012 in General
I have a dataset of a few hundred rows. When I use bDeferRender, in conjunction with "aoColumns" and "mRender", mRender is called for every row in the dataset even though the table is only displaying the first 10 rows.

bDeferRender doesn't seem to do anything in this case. Am I missing something?

Replies

  • razor1999razor1999 Posts: 2Questions: 0Answers: 0
    Figured it out. Looks like mRender is always called regardless of whether or not bDeferRender is true. fnRowCallback is indeed only called for the rows that are displayed so I made my changes in there instead.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Correct - if you look at the `type` (2nd parameter) sent into mRender, it gets called for 'sort' and 'filter' in the initial run. 'display' is used for when the cell gets displayed.

    fnCreatedCell / fnCreatedRow might also be of interest.

    Allan
This discussion has been closed.