I am trying to debug a call to WCF RIA Service that return JSON data. when using .Ajax it works fine, but does not work when using it for Kendo Grid. I am trying to find out if there are any callbacks for Success or Error for dataSource ?
also Additionally i want to use Paging,sorting and Filtering on server, do you have sample which does it using
WCF RIA service ?
<script type="text/javascript">
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "json",
transport: {
read: "http://localhost:50424/Services/Silverlight_WCF_RIA-Web-MyDomainService.svc/JSON/GetSecurity_Users"
},
schema: {
model: {
fields: {
First_Name: { type: "string" },
Last_Name: { type: "string" },
Email_Address: { type: "string" }
}
}
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true
},
height: 250,
filterable: true,
sortable: true,
pageable: true,
columns: [{
field: "First_Name",
width: 90,
title: "First Name"
}, {
field: "Last_Name",
width: 90,
title: "Last Name"
}, {
field: "Email_Address",
title: "Email"
}
]
});
});
</script>
also Additionally i want to use Paging,sorting and Filtering on server, do you have sample which does it using
WCF RIA service ?
<script type="text/javascript">
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "json",
transport: {
read: "http://localhost:50424/Services/Silverlight_WCF_RIA-Web-MyDomainService.svc/JSON/GetSecurity_Users"
},
schema: {
model: {
fields: {
First_Name: { type: "string" },
Last_Name: { type: "string" },
Email_Address: { type: "string" }
}
}
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true
},
height: 250,
filterable: true,
sortable: true,
pageable: true,
columns: [{
field: "First_Name",
width: 90,
title: "First Name"
}, {
field: "Last_Name",
width: 90,
title: "Last Name"
}, {
field: "Email_Address",
title: "Email"
}
]
});
});
</script>