Skip to content

Instantly share code, notes, and snippets.

@gist-master
gist-master / app.html
Last active January 21, 2017 08:30
Dialog: Predefined dialogs
<template>
<div id="example">
<button click.delegate="alertBtn()" class="k-button">kendo.alert</button>
<button click.delegate="confirmBtn()" class="k-button">kendo.confirm</button>
<button click.delegate="promptBtn()" class="k-button">kendo.prompt</button>
</div>
</template>
@gist-master
gist-master / app.html
Last active February 8, 2017 09:23
Dialog: basic use
<template>
<require from="aurelia-kendoui-bridge/dialog/dialog"></require>
<div id="example">
<div id="dialog"
ak-dialog="k-widget.bind: dialog;
k-width: 400px;
k-title: Software Update;
k-closable.bind: false;
k-modal.bind: false;
k-actions.bind: actions"
@gist-master
gist-master / ajax.css
Created January 7, 2017 15:55
Panel Bar: Loading with AJAX
.wrapper {
height: 320px;
margin: 20px auto;
padding: 20px 0 0;
background: url('https://demos.telerik.com/kendo-ui/content/web/panelbar/astonmartin.png') no-repeat center 50px transparent;
}
#panelbar {
width: 250px;
float: right;
@gist-master
gist-master / ajax.css
Created January 7, 2017 15:52
Panel Bar: Loading with AJAX
.wrapper {
height: 320px;
margin: 20px auto;
padding: 20px 0 0;
background: url('https://demos.telerik.com/kendo-ui/content/web/panelbar/astonmartin.png') no-repeat center 50px transparent;
}
#panelbar {
width: 250px;
float: right;
@gist-master
gist-master / app.html
Last active May 26, 2017 11:56
Grid: command
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/grid/grid-command"></require>
<ak-grid k-data-source.bind="datasource" k-on-data-bound.delegate="onDataBound($event.detail)">
<ak-col k-title="OrderId" k-field="OrderID"></ak-col>
<ak-col>
<ak-grid-command k-name="details" k-text="Details" k-click.call="details($event)"></ak-grid-command>
</ak-col>
@gist-master
gist-master / app.html
Last active January 7, 2017 08:51
recreate
<template>
<require from="aurelia-kendoui-bridge/datetimepicker/datetimepicker"></require>
<require from="aurelia-kendoui-bridge/datepicker/datepicker"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/scheduler/scheduler"></require>
<require from="aurelia-kendoui-bridge/dropdownlist/dropdownlist"></require>
<require from="aurelia-kendoui-bridge/chart/chart"></require>
<require from="aurelia-kendoui-bridge/listview/listview"></require>
@gist-master
gist-master / app.html
Last active April 13, 2017 07:15
k-on-ready
<template>
<h1>Kendo controls cannot be used from bind() or attached().</h1>
<p>When you would like to use the control as soon as it has been initialized, we recommend using the k-on-ready event, shown below. Read <a href="https://aurelia-ui-toolkits.gitbooks.io/kendoui-bridge-docs/content/what_you_need_to_know.html#595-how-to-get-to-the-kendo-control">this chapter</a> for other solutions</p>
<require from="aurelia-kendoui-bridge/datetimepicker/datetimepicker"></require>
<div id="example">
<div class="demo-section k-content">
<p>Two ways to subscribe to the ready event. DOM events:</p>
<input ak-datetimepicker k-on-ready.delegate="onReady($event.detail)" style="width: 100%" />
@gist-master
gist-master / app.html
Last active January 6, 2017 11:14
DateTimePicker: with.bind
<template>
<require from="aurelia-kendoui-bridge/datetimepicker/datetimepicker"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<div id="example">
<div class="demo-section k-content" with.bind="appointment">
<h4>Appointment starts on</h4>
<input ak-datetimepicker="k-value.two-way: date" style="width: 100%" />
<p>Change appointment object does not work due to <a href="https://github.com/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/671">#671</a></a></p>
@gist-master
gist-master / app.html
Last active January 26, 2017 09:40 — forked from JeroenVinke/app.html
Grid: messages translation
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<ak-grid k-data-source.bind="datasource" k-pageable.bind="true" k-toolbar.bind="['create']" k-editable="inline" k-messages.bind="messages">
<ak-col k-field="ProductName"></ak-col>
<ak-col k-field="UnitPrice" k-title="Unit Price" k-format="{0:c}" k-width="120px"></ak-col>
<ak-col k-field="UnitsInStock" k-title="Units In Stock" k-width="120px"></ak-col>
<ak-col k-field="Discontinued" k-width="120px"></ak-col>
<ak-col k-command.bind="['edit', 'destroy']" k-title="&nbsp;" width="250px"></ak-col>
@gist-master
gist-master / app.html
Last active January 7, 2017 22:36 — forked from JeroenVinke/app.html
Grid: Persisting state
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<p>This sample demonstrates how to save the state of the grid to localStorage, and how to restore it again. Reorder the columns and click Save. Then reload the page and click on Load, the column order is then restored</p>
<button click.delegate="save()" ak-button>Save</button>
<button click.delegate="reloadPage()" ak-button>Reload page</button>
<button click.delegate="load()" ak-button>Load</button>