Hi,
I can't fill out my KendoGris whereas the Http request : http://dotnet.habita-com.local/test.json return JSON flux.
I don't think this does contain any strange stuff, since it's mostly the same as the examples on the website. There is just url which is different but it return the same thing.
<div id="grid"></div>
<script type="text/javascript">
$(document).ready(function () {
var crudServiceBaseUrl = "http://dotnet.habita-com.local/test.json",
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: crudServiceBaseUrl,
dataType: "JSONP"
},
},
});
$("#grid").kendoGrid({
dataSource: dataSource,
columns: [
{ field: "ProductName", title: "Product Name" },
{ field: "UnitPrice", title: "Unit Price", format: "{0:c}"},
{ field: "UnitsInStock", title: "Units In Stock" },
{ field: "Discontinued" },
{ command: ["edit", "destroy"], title: " "}]
});
});
</script>
</div>
Please let me know if there is a way to fill out this grid with json flux !
I can't fill out my KendoGris whereas the Http request : http://dotnet.habita-com.local/test.json return JSON flux.
I don't think this does contain any strange stuff, since it's mostly the same as the examples on the website. There is just url which is different but it return the same thing.
<div id="grid"></div>
<script type="text/javascript">
$(document).ready(function () {
var crudServiceBaseUrl = "http://dotnet.habita-com.local/test.json",
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: crudServiceBaseUrl,
dataType: "JSONP"
},
},
});
$("#grid").kendoGrid({
dataSource: dataSource,
columns: [
{ field: "ProductName", title: "Product Name" },
{ field: "UnitPrice", title: "Unit Price", format: "{0:c}"},
{ field: "UnitsInStock", title: "Units In Stock" },
{ field: "Discontinued" },
{ command: ["edit", "destroy"], title: " "}]
});
});
</script>
</div>
Please let me know if there is a way to fill out this grid with json flux !