i'm trying add kendoui grid spa, i'm using hot towel template. show line , i'm not sure i'm doing wrong.
i've followed example here: http://kendo-labs.github.io/knockout-kendo/web/grid.html
<div data-bind="kendogrid: items" />
here jsfiddle demonstrating problem. http://jsfiddle.net/togas/nfk6w
edit: removed durandal tag since doesn't appear part of problem
when call ko.applybindings, viewmodel.items empty, uses draw grid...meaning has no columns , no rows. line if haven't defined in binding options. when ajax call completes fails redraw.
define grid columns , wrap breeze entities in rowviewmodel defined columns.
<div data-bind="kendogrid: { data: items, groupable: true, sortable: true, columns: [ {field: 'description',width: 90,title: 'description'}] }"></div>
Comments
Post a Comment