deferRender and column render callback

deferRender and column render callback

nkassisnkassis Posts: 2Questions: 1Answers: 0

Is there a way to not have the render callback called for rows that aren't displayed when deferRender is set to true? This would make a difference of about 5 seconds in render time for a table of 50,000 rows.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,772Questions: 1Answers: 10,511 Site admin
    Answer ✓

    Do you mean the columns.render option? It will be called to get type, filtering and sort information, which is required regardless deferRender (the data is needed to be able to sort the table to know what row's to display!).

    However, the display renderer shouldn't be called until the row is displayed.

    Allan

  • nkassisnkassis Posts: 2Questions: 1Answers: 0
    edited March 2016

    Ok I see, I added a check on the type and only do the work of rendering when type === "display" and that seems to improve things significantly.

    Thanks.

This discussion has been closed.