Does DataTable binding works with dynamically generated table
Does DataTable binding works with dynamically generated table
chandra550
Posts: 1Questions: 1Answers: 0
Hi Team,
I have code like this in my html
<!-- ko foreach: currentPageQuestions -->
<tr>
<td class="question-item" data-bind="html: questionText"></td>
</tr>
<!-- /ko -->
Basically the TR and TD elements are created dynamically based on the data that comes from view model.
When i try to attach DataTable to it, it doesn't work as there are no TR/TD tags available in the table except one set that is carrying the dynamic code.
Can DataTable detect this scenario and inject itself into this load process and generate a paginated table?
Thanks in advance.
This discussion has been closed.