deferRender and column render callback
deferRender and column render callback
nkassis
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
This discussion has been closed.
Answers
Do you mean the
columns.render
option? It will be called to get type, filtering and sort information, which is required regardlessdeferRender
(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
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.