Hello Michael,
It must have been a temporary downtime of the Dojo, as it is still available. For your convenience, here is the snippet:
<div data-role="grid" data-sortable="true" data-editable="true" data-columns='["Name", "Price", "UnitsInStock", {"command": "destroy"}]' data-bind="source: gridSource"></div>
<button id="getJSON">Get the JSON representation of the viewmodel</button>
<script>
var viewModel = kendo.observable({
gridSource: [
{ Name: "Socks", Price: 18.00, UnitsInStock: 39 },
{ Name: "Gloves", Price: 19.00, UnitsInStock: 17 },
{ Name: "Shoes", Price: 97.00, UnitsInStock: 29 }
],
someName: "some name here"
});
kendo.bind($("table"), viewModel);
$("#getJSON").click(function(e) {
alert(kendo.stringify(viewModel.toJSON()))
});
</script>
Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework -
download Kendo UI now!