I'm building a data grid with thousands of list items and no pagination. As a result, the performance with live-binding is, understandably, very poor. With ~20 list items, there is no lag whatsoever.
<thead>
{{#each columns}}
<tr><td can-click="sort">{{name}}</td></tr>
{{/each}}
</thead>
<tbody>
{{#each thousandsOfItems}}
<tr><td>{{name}}</td></tr>
{{/each}}
</tbody>
Is there a way for part of my template to be live bound, such as the <thead>
, but use simple string concatenation/injection for the <tbody>
?
Edit
My approach may be the problem. Thousands of static <tr>
s are likely quite laggy too. It's been suggested to me that I try adding/removing rows as the page is scrolled.