The original official jQuery Templates plugin. This project was maintained by the jQuery team as an official jQuery plugin. It is no longer in active development, and has been superseded by JsRender.
3.23k
stars
1.01k
forks
source link
JsView append data with the event attach to it. #176
I am using jsview to render the data into the table
$.link.Tmpl("#List", result).on("click", "tr", function () {
selectFunction($.view(this));
});
It working well for a small data rows if the data is more e.g. 5000,10000,20000... records it will take time to render which makes the browser unresponsive for some time even some times crash the browser.
Then I decided to append the data in chunks
$("#List").append($.render.Tmpl(res2))
but here I am unable to attach click event to each row as that of $.link does.
It will stuck my future project development,Please help.
I am using jsview to render the data into the table $.link.Tmpl("#List", result).on("click", "tr", function () { selectFunction($.view(this)); });
It working well for a small data rows if the data is more e.g. 5000,10000,20000... records it will take time to render which makes the browser unresponsive for some time even some times crash the browser.
Then I decided to append the data in chunks
$("#List").append($.render.Tmpl(res2))
but here I am unable to attach click event to each row as that of $.link does.
It will stuck my future project development,Please help.