<h2>Data - BreezeJs integration</h2>
<table>
<tr>
<th>Filter</th>
<td>
<button data-bind="click:filterBeverages, button: {}" type="button">Beverages</button>
<button data-bind="click:filterCondiments, button: {}" type="button">Condiments</button>
</td>
</tr>
<tr>
<th>Sort By</th>
<td>
<button data-bind="click:sortId, button: {}" type="button">ID</button>
<button data-bind="click:sortPrice, button: {}" type="button">Price, Name</button>
</td>
</tr>
<tr>
<th>Pages</th>
<td>
<button data-bind="click:clearPaging, button: {}" type="button">Clear Paging</button>
<button data-bind="click:setPaging, button: {}" type="button">Page Size = 10</button>
<button data-bind="click:prevPage, button: {}" type="button">Previous</button>
<button data-bind="click:nextPage, button: {}" type="button">Next</button>
</td>
</tr>
</table>
<h3>Products</h3>
<table id="demo-grid" data-bind="wijgrid: {
data: products,
allowEditing: true,
allowSorting: true,
showFilter: true,
columns: [
{ headerText: 'ID', dataKey: 'Product_ID' },
{ headerText: 'Product name', dataKey: 'Product_Name' },
{ headerText: 'Category ID', dataKey: 'Category_ID' },
{ headerText: 'Price', dataKey: 'Unit_Price', dataType: 'number' }
]}" >
</table> |