knockout.js foreach repeats td element in table, but not the tr element
Try this code for the foreach loop to repeat this code :
Try to keep the “foreach” binding in the next element:
<table data-bind="foreach: files, ..."> <tr> ...
Using this virtual element also work :
<!-- ko foreach: files --> <tr> <td> ... </tr> <!-- /ko -->
Use this method to repeating both the element .
The containerless binding element is used for repeat the many table rows . For KO , Defining the closing /ko tag is difficult .
Above the containerless binding the table-header is defined . all is worked as expected if the user is changed to the standard table row.