This question is locked. New answers and comments are not allowed.
Hi,
I cannot get an action sheet to open up when clicking / tapping on a row in a table. The rows are produced from a datasource and a template. I have tried various methods and get nowhere. Does anyone know of a good example of binding the action sheet in a template?
Thanks Chris
<table id="tbl-items" style="width:100%;margin-left:20px;margin-right:20px;" class="rounded" >
<thead>
<tr>
<th>QTY</th>
<th>DESCRIPTION</th>
<th> PART#</th>
<th>WEIGHT</th>
<th>PRICE</th>
<th>TOTAL</th>
<th>MONTHS SVC</th>
<th>DATE</th>
</tr>
</thead>
<tbody data-template="tmpl-pickups" data-bind="source:pickups" > </tbody>
</table>
<script type="text/x-kendo-template" id="tmpl-pickups">
<tr >
<td>#=Quantity#</td>
<td>#=Description#</td>
<td>#=PartNumber#</td>
<td>#=Weight#</td>
<td>#=UnitPrice#</td>
<td>#=Total#</td>
<td>#=MonthsService#</td>
<td>#=DateCode#</td>
</tr>
<ul id="actionsheet" >
<li><a href="##" data-action="Delete">Delete</a></li>
<li><a href="##" data-action="Update">Update</a></li>
</ul>
</script>
And in JS
$('#actionsheet').kendoMobileActionSheet({type: 'tablet'});
$('#tbl-items').on("click","tr",function(){$('#actionsheet').data("kendoMobileActionSheet").open(pickups.data())});
I cannot get an action sheet to open up when clicking / tapping on a row in a table. The rows are produced from a datasource and a template. I have tried various methods and get nowhere. Does anyone know of a good example of binding the action sheet in a template?
Thanks Chris
<table id="tbl-items" style="width:100%;margin-left:20px;margin-right:20px;" class="rounded" >
<thead>
<tr>
<th>QTY</th>
<th>DESCRIPTION</th>
<th> PART#</th>
<th>WEIGHT</th>
<th>PRICE</th>
<th>TOTAL</th>
<th>MONTHS SVC</th>
<th>DATE</th>
</tr>
</thead>
<tbody data-template="tmpl-pickups" data-bind="source:pickups" > </tbody>
</table>
<script type="text/x-kendo-template" id="tmpl-pickups">
<tr >
<td>#=Quantity#</td>
<td>#=Description#</td>
<td>#=PartNumber#</td>
<td>#=Weight#</td>
<td>#=UnitPrice#</td>
<td>#=Total#</td>
<td>#=MonthsService#</td>
<td>#=DateCode#</td>
</tr>
<ul id="actionsheet" >
<li><a href="##" data-action="Delete">Delete</a></li>
<li><a href="##" data-action="Update">Update</a></li>
</ul>
</script>
And in JS
$('#actionsheet').kendoMobileActionSheet({type: 'tablet'});
$('#tbl-items').on("click","tr",function(){$('#actionsheet').data("kendoMobileActionSheet").open(pickups.data())});