Hi,
first, im sorry for my bad english.
I have a grid and a model. I bind dataSource of grid to model.items.
but when i update model grid dont update
code:
$(document).ready(function(){
var model=new MyModel();
ko.applyBindings(model);
$("#grid").kendoGrid({
dataSource:{
data:model.items(),
pageSize:10
},
...
});
});
if i use bellow code all thing is ok. and when i update my model
grid update
<div data-bind="kendoGrid:{data:items}"></div>
first, im sorry for my bad english.
I have a grid and a model. I bind dataSource of grid to model.items.
but when i update model grid dont update
code:
$(document).ready(function(){
var model=new MyModel();
ko.applyBindings(model);
$("#grid").kendoGrid({
dataSource:{
data:model.items(),
pageSize:10
},
...
});
});
if i use bellow code all thing is ok. and when i update my model
grid update
<div data-bind="kendoGrid:{data:items}"></div>