Skip to content

Instantly share code, notes, and snippets.

View adriatic's full-sized avatar
💭
I may be slow to respond.

Nikolaj Ivancic adriatic

💭
I may be slow to respond.
  • Congral, LLC
  • Ann Arbor, MI
  • 13:05 (UTC -04:00)
View GitHub Profile
@adriatic
adriatic / app.html
Last active July 20, 2016 06:44
Gantt: resources
<template>
<div id="example">
<ak-gantt k-data-source.bind="tasksDataSource"
k-dependencies.bind="dependenciesDataSource"
k-assignments.bind="assignments"
k-resources.bind="resources"
k-views.bind="['day', 'week', {type:'month', selected: true}]"
k-height.bind="700"
k-show-work-hours.bind="false"
k-show-work-days.bind="false"
@adriatic
adriatic / app.html
Last active July 20, 2016 06:44
Gantt: Api
<template>
<div id="example">
<div class="box wide">
<div class="box-col">
<h4>Selection</h4>
<ul class="options">
<li>
<input type="text" value.bind="index" class="k-textbox" />
<button ak-button click.delegate="select()">Select task</button>
</li>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:44
Gantt: task template
<template>
<require from="./task-template.css"></require>
<div id="example">
<ak-gantt k-data-source.bind="tasksDataSource"
k-dependencies.bind="dependenciesDataSource"
k-assignments.bind="assignments"
k-resources.bind="resources"
k-views.bind="['day', {type:'week', selected: true}]"
k-height.bind="700"
k-row-height.bind="62"
@adriatic
adriatic / app.html
Last active July 20, 2016 06:44
Grid: batch editing
<template>
<ak-grid k-data-source.bind="datasource"
k-pageable.bind="true"
k-navigatable.bind="true"
k-toolbar.bind="['create', 'save', 'cancel']"
k-editable.bind="true">
<ak-col k-field="UnitPrice" k-title="Unit Price" k-format="{0:c}" k-width.bind="120"></ak-col>
<ak-col k-field="UnitsInStock" k-title="Units In Stock" k-width.bind="120"></ak-col>
<ak-col k-field="Discontinued" k-width.bind="120"></ak-col>
<ak-col k-command="destroy" k-title="&nbsp;" k-width.bind="150"></ak-col>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:44
Grid: binding to local data
<template>
<ak-grid k-data-source.bind="datasource"
k-pageable.bind="{ input: true, numeric: false}"
k-filterable.bind="true"
k-sortable.bind="true"
k-scrollable.bind="true">
<ak-col k-title="ProductName" k-field="ProductName"></ak-col>
<ak-col k-title="Unit Price" k-field="UnitPrice" k-format="{0:c}" k-width="130px"></ak-col>
<ak-col k-title="Units In Stock" k-field="UnitsInStock" k-width="130px"></ak-col>
<ak-col k-field="Discontinued" k-width="130px"></ak-col>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:44
Grid: binding to remote data
<template>
<ak-grid k-data-source.bind="datasource" k-pageable.bind="true" k-filterable.bind="true" k-sortable.bind="true">
<ak-col k-title="OrderId" k-field="OrderID"></ak-col>
<ak-col k-field="Freight"></ak-col>
<ak-col k-title="Order Date" k-field="OrderDate" k-format="{0:MM/dd/yyyy}"></ak-col>
<ak-col k-title="Ship Name" k-field="ShipName"></ak-col>
<ak-col k-title="Ship City" k-field="ShipCity"></ak-col>
</ak-grid>
</template>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:43
Grid: binding to signalR
<template>
<ak-grid style="margin-bottom: 20px"
k-height.bind="550"
k-editable.bind="true"
k-sortable.bind="true"
k-toolbar.bind="['create']"
k-data-source.bind="dataSource">
<ak-col k-field="UnitPrice"></ak-col>
<ak-col k-field="ProductName"></ak-col>
<ak-col k-command="destroy" k-width.bind="150"></ak-col>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:43
Grid: frozen columns
<template>
<ak-grid k-data-source.bind="datasource"
k-sortable.bind="true"
k-reorderable.bind="true"
k-groupable.bind="true"
k-resizable.bind="true"
k-filterable.bind="true"
k-column-menu.bind="true"
k-pageable.bind="true">
<ak-col k-field="OrderID" k-title="Order ID" k-locked.bind="true" k-lockable.bind="false" k-width.bind="150"></ak-col>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:43
Grid: initialization from table
<template>
<ak-grid k-data-source.bind="datasource"
k-sortable.bind="true"
k-reorderable.bind="true"
k-groupable.bind="true"
k-resizable.bind="true"
k-filterable.bind="true"
k-column-menu.bind="true"
k-pageable.bind="true">
<ak-col k-field="OrderID" k-title="Order ID" k-locked.bind="true" k-lockable.bind="false" k-width.bind="150"></ak-col>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:43
Grid: inline editing
<template>
<ak-grid k-data-source.bind="datasource" k-pageable.bind="true" k-toolbar.bind="['create']" k-editable="inline">
<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>
</ak-grid>
</template>