How to use Datatables + Knockout + Custom Rows

How to use Datatables + Knockout + Custom Rows

RianRian Posts: 1Questions: 1Answers: 0

Hello,
is there a way to use Row Templates with knockout and DataTable?
I looked at http://datatables.net/dev/knockout/ but this only seems to work if i declare rows in javascript. Is that the only approach?
I searched for two days now and there seems to be no working custom binding or anything else.

below is the Code of the row i want to use. It would be quite complicated i think to realise this through the custom column rendering option here: https://datatables.net/examples/advanced_init/column_render.html

  <td data-bind="text: formattedDate,click: $root.getWorkItemView"></td>
    <td data-bind="text: Person,click: $root.getWorkItemView"></td>
    <td style="text-align: right;" data-bind="text: WertInfo,click: $root.getWorkItemView"></td>
    <td data-bind="text: KommentarKurz,attr: { 'title': Kommentar },click: $root.getWorkItemView"></td>
    <td data-bind="visible: aufwandIndexViewModel.isMonthOpen">
        <div class="form-group form-inline">
            <button type="button" class="btn btn-info btn-xs" data-bind="visible: isFromCurrentUser, click: $root.getWorkItemUpdate">
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> editieren
            </button>
            <button type="button" class="btn btn-danger btn-xs" data-bind="visible: isFromCurrentUser, click: aufwandIndexViewModel.deleteWorkItem">
                <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> löschen
            </button>
        </div>
    </td>
This discussion has been closed.