Hi,
we want to get datasource for grid through ODATA service operation using POST while passing additional arguments.
We are using .NET WCF DataService.
ServiceOperation itself works as well, but parameter is not passed (is always null) and request is always perfomed with GET.
We tried trial version as like as GPL, nothing works as supposed.
Please can you clarify correct using of data parameters passing to service operations using POST?
Thx
JS code:
$("#grid").kendoGrid({
dataSource: {
type: "odata",
serverPaging: true,
serverSorting: true,
pageSize: 10,
transport: {
read:
{
type:"POST",
contentType: "application/json; charset=utf-8",
url:"http://localhost/Flexica_ODATA/product.svc/GetSamples",
datatype:"JSON",
data: { param: "testx" }
},
}
},
serverPaging: true,
height: 280,
pageable: true,
sortable: true,
columns: ["ProductName", "ProductCode"]
});
we want to get datasource for grid through ODATA service operation using POST while passing additional arguments.
We are using .NET WCF DataService.
ServiceOperation itself works as well, but parameter is not passed (is always null) and request is always perfomed with GET.
We tried trial version as like as GPL, nothing works as supposed.
Please can you clarify correct using of data parameters passing to service operations using POST?
Thx
JS code:
$("#grid").kendoGrid({
dataSource: {
type: "odata",
serverPaging: true,
serverSorting: true,
pageSize: 10,
transport: {
read:
{
type:"POST",
contentType: "application/json; charset=utf-8",
url:"http://localhost/Flexica_ODATA/product.svc/GetSamples",
datatype:"JSON",
data: { param: "testx" }
},
}
},
serverPaging: true,
height: 280,
pageable: true,
sortable: true,
columns: ["ProductName", "ProductCode"]
});