Link in Datatables Performance Issues

Link in Datatables Performance Issues

ant87ant87 Posts: 9Questions: 0Answers: 0
edited March 2013 in General
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.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    fnRender caused a time out on 2000 rows? I'm not sure what that would happen - that's very odd. Having said that, fnRender is deprecated and shouldn't be used any more. It has been removed in git and will be gone in 1.10 . mRender should be faster but I'd be interested to know how you get on with it. Also if you could post a link that would be useful.

    Allan
This discussion has been closed.