I have the following table row as a script template in KnockoutJs:
<script id="inboxTemplate" type="text/html">
<tr data-bind="click: function() { viewInboxModel.selectAction($data); }">
<td>...</td>
<td>${ CreateDate }</td>
<td data-bind="click: function(e){ e.preventDefault();viewInboxModel.clearAction($data); }"><img src="/Content/images/delete.png" height="16px" width="16px"> </td>
</tr>
</script>
The problem is when I click the delete button, it is also running the selectAction() method. I've tried using e.preventDefault() in both selectAction click handler and the clearAction() clicker handler to no avail. Is there anyway KnockoutJs can prevent the underlying row from now being clicked if the delete button is clicked?