BorisMoore / jquery-tmpl

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

Closed SumitJambhale closed 11 years ago

SumitJambhale commented 11 years ago

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.

BorisMoore commented 11 years ago

Is this supposed to be a JsViews issue? Can you close this and open it on the JsViews project?

SumitJambhale commented 11 years ago

This issue is close,It will be shifted to jsviews.