I have a table set up like this
<table class="table table-condensed">
<thead>
<tr>
<th>Look</th>
<th>Lease Company</th>
</tr>
</thead>
<tbody data-bind="foreach: leaseApplicationLooks">
<tr>
<td data-bind="text: lookId"></td>
<td><select data-bind="options: $parent.leaseCompanies, optionsText: 'name', optionsValue: 'name', value: leaseCompany" /></td>
</tr>
</tbody>
</table>
My view model:
leaseCompanies(datacontext.lookups.applicationCompanies);
This returns an array with a name, type fields
Depending on the row I want to display different options:
For example: Row 1, show all Type = 1, 2 Row 2, show all Type = 2
How would I go about doing this?