Skip to content

Instantly share code, notes, and snippets.

@JeroenVinke
Created February 3, 2016 16:46
Show Gist options
  • Save JeroenVinke/fc6aa783a513f1a136f8 to your computer and use it in GitHub Desktop.
Save JeroenVinke/fc6aa783a513f1a136f8 to your computer and use it in GitHub Desktop.
export class BasicUse {
pageable = {
refresh: true,
pageSizes: true,
buttonCount: 10
};
foo = 'bar';
constructor() {
this.datasource = {
type: 'odata',
transport: {
read: '//demos.telerik.com/kendo-ui/service/Northwind.svc/Customers'
},
pageSize: 5
};
}
}
<template>
<require from="./basic-use.css"></require>
<k-grid k-data-source.bind="datasource" k-pageable.bind="pageable" k-sortable.bind="true">
<k-col title="Contact Name" field="ContactName">${foo}</k-col>
<k-col title="Contact Name" field="ContactName"></k-col>
<k-col title="Contact Title" field="ContactTitle"></k-col>
<k-col title="Company Name" field="CompanyName"></k-col>
<k-col field="Country"></k-col>
</k-grid>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment