I am trying to set up a call using the datasource control in a html page, based on the following:
http://docs.kendoui.com/api/framework/datasource#transportcreatedata-objectstringfunction
Below is my js function call, and what I am trying to so is pass the customer header called "key" with the value to my restful service, and not sure if I am doing this correctly or not, I am assuming not as I am not seeing this value in my service. So any help you can give on this would be appreciated. Thanks.
http://docs.kendoui.com/api/framework/datasource#transportcreatedata-objectstringfunction
Below is my js function call, and what I am trying to so is pass the customer header called "key" with the value to my restful service, and not sure if I am doing this correctly or not, I am assuming not as I am not seeing this value in my service. So any help you can give on this would be appreciated. Thanks.
function mobileListViewPressToLoadMore() { var dataSource = new kendo.data.DataSource({ pageSize: 20, serverPaging: true, transport: { create: { data: { key: "34083E61DB18E3E88C80DB638C91009A9934757542B538C20E332BBC3F079BE66E79BDC70F06EED8541925D95599E834CF8877D07FAF4645A190BFA3E38A9A3FCB728E043EB8A081B279B81F6F9CED5A" } }, read: { url: "http://services/rest/plan.svc/Patient" // the remove service url }, parameterMap: function (options) { var parameters = { q: "javascript", //additional parameters sent to the remote service rpp: options.pageSize, page: options.page //next page }; return parameters; } }, schema: { // describe the result format data: "", // the data which the data source will be bound to is in the "results" field total: function () { return 0; } } }); $("#load-more").kendoMobileListView({ dataSource: dataSource, template: $("#load-more-template").text(), loadMore: true }); }