Link in Datatables Performance Issues
Link in Datatables Performance Issues
Hi Alan.
Great Plugin by the way!
An issue we came across today in a dev project, we had a data table with about 2000 rows and the first row was a html link.
This worked fine when we filtered the table to only show 50 rows but when changing the page size to show all 2000 rows this resulted in a time out issue.
I tracked it down to the html link by removing all other rows first.
I initially had my link embedded using the ‘fnRender’ function which returned a’ a href’ link .
I then changed this so that the link came in with the JSON object itself but both methods resulted in a time out issue.
However, I managed to fix up the problem by using the following code in the ‘fnRowCallback’ function $('td:eq(1)', nRow).html(' a href link'">'
I suppose I am just wondering if you can shed any light on why the latter worked and the former resulted in a time out issue.
Great Plugin by the way!
An issue we came across today in a dev project, we had a data table with about 2000 rows and the first row was a html link.
This worked fine when we filtered the table to only show 50 rows but when changing the page size to show all 2000 rows this resulted in a time out issue.
I tracked it down to the html link by removing all other rows first.
I initially had my link embedded using the ‘fnRender’ function which returned a’ a href’ link .
I then changed this so that the link came in with the JSON object itself but both methods resulted in a time out issue.
However, I managed to fix up the problem by using the following code in the ‘fnRowCallback’ function $('td:eq(1)', nRow).html(' a href link'">'
I suppose I am just wondering if you can shed any light on why the latter worked and the former resulted in a time out issue.
This discussion has been closed.
Replies
Allan