Memory issue while using event for row selection
Memory issue while using event for row selection
sdinesh21
Posts: 37Questions: 0Answers: 0
Hey All,
I am using Data Tables 1.9.4 and notice memory issue with my application while using events for multi row selection and polling for server data at specific intervals (using setInterval and fnDraw(false)). During every poll interval, when I highlight a row in the table, the memory usage goes up and never comes down until the page is reloaded. This is very high in IE8/9 and Firefox browsers.
Is there an issue with attaching events in the row selection function? Is there a better way to achieve that?
Here is the DataTables live link for the code...
http://live.datatables.net/ulemud/2/edit#javascript,html
I am using Data Tables 1.9.4 and notice memory issue with my application while using events for multi row selection and polling for server data at specific intervals (using setInterval and fnDraw(false)). During every poll interval, when I highlight a row in the table, the memory usage goes up and never comes down until the page is reloaded. This is very high in IE8/9 and Firefox browsers.
Is there an issue with attaching events in the row selection function? Is there a better way to achieve that?
Here is the DataTables live link for the code...
http://live.datatables.net/ulemud/2/edit#javascript,html
This discussion has been closed.
Replies
You'd be much better using a single delegate event handler. `$('tbody').on('click', 'tr', function ()... )` for example.
Allan
I hope that the multi row selections with shift and ctrl key will be possible with future updates of TableTools...
I have updated the DataTables live link here...
http://live.datatables.net/ulemud/3/edit