Skip to content

Instantly share code, notes, and snippets.



Last active Oct 14, 2016
What would you like to do?
Grid: basic usage
<require from="./basic-use.css"></require>
<ak-grid k-data-source.bind="datasource" k-pageable.bind="pageable" k-sortable.bind="true">
<ak-col k-title="Contact Name" k-field="ContactName">
<div class='customer-photo' style="background-image: url(${CustomerID}.jpg);"></div>
<div class='customer-name'>${ContactName}</div>
<ak-col k-title="Contact Name" k-field="ContactName"></ak-col>
<ak-col k-title="Contact Title" k-field="ContactTitle"></ak-col>
<ak-col k-title="Company Name" k-field="CompanyName"></ak-col>
<ak-col k-field="Country"></ak-col>
export class BasicUse {
pageable = {
refresh: true,
pageSizes: true,
buttonCount: 10
constructor() {
this.datasource = {
type: 'odata',
transport: {
read: '//'
pageSize: 5
.customer-photo {
display: inline-block;
width: 32px;
height: 32px;
border-radius: 50%;
background-size: 32px 35px;
background-position: center center;
vertical-align: middle;
line-height: 32px;
box-shadow: inset 0 0 1px #999, inset 0 0 10px rgba(0,0,0,.2);
margin-left: 5px;
.customer-name {
display: inline-block;
vertical-align: middle;
line-height: 32px;
padding-left: 3px;
<!doctype html>
<title>Aurelia KendoUI bridge</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<script src=""></script>
<body aurelia-app="main">
<script src=""></script>
<script src=""></script>
export function configure(aurelia) {
.plugin('aurelia-kendoui-bridge', kendo =>;
aurelia.start().then(a => a.setRoot());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment