Hi,
Some body please help
Have created WCF Restful service. table name is Table1
and Servicename created is Table1CollectionService
Have ID and Name as table1 fields.
i am trying to bind this table info to a kendo grid.
i donno what for this is not working.
<script>
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "json",
transport: {
read: { url: "http://localhost:52408/Table1CollectionService.svc/", contentType: "application/json; charset=utf-8" }
},
schema: {
model: {
fields: { Id: { type: "number" }, Name: { type: "string" }
}} },
error: function (e) {
debugger;
alert('error');
},
change: function (e) {
alert("Change");
},
requestStart: function (e) {
debugger;
alert("Request Start");
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true
},
filterable: true,
sortable: true,
pageable: true,
columns: [{
field: "Id"
}, { field: "Name" }
]
});
});
</script>
i have added jsonbehaviour attribute on service class also.
but it is not working .please help me if u can
Thanks and Regards
Victoria
Some body please help
Have created WCF Restful service. table name is Table1
and Servicename created is Table1CollectionService
Have ID and Name as table1 fields.
i am trying to bind this table info to a kendo grid.
i donno what for this is not working.
<script>
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "json",
transport: {
read: { url: "http://localhost:52408/Table1CollectionService.svc/", contentType: "application/json; charset=utf-8" }
},
schema: {
model: {
fields: { Id: { type: "number" }, Name: { type: "string" }
}} },
error: function (e) {
debugger;
alert('error');
},
change: function (e) {
alert("Change");
},
requestStart: function (e) {
debugger;
alert("Request Start");
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true
},
filterable: true,
sortable: true,
pageable: true,
columns: [{
field: "Id"
}, { field: "Name" }
]
});
});
</script>
i have added jsonbehaviour attribute on service class also.
but it is not working .please help me if u can
Thanks and Regards
Victoria