var
dataSource =
new
kendo.data.DataSource({
transport: {
read: {
type:
"GET"
,
url:
"http://localhost:51465/WidgetService.asmx/GetPatients"
,
contentType:
'application/json'
,
datatype:
"json"
}
},
serverPaging:
false
,
schema: {
data:
"d"
}
, pageSize: 10
});
var
dataSource =
new
kendo.data.DataSource({
transport: {
read: {
type:
"GET"
,
url:
"http://localhost:51465/WidgetService.asmx/GetPatientsFiltered"
,
contentType:
'application/json'
,
datatype:
"json"
,
data: { srchFilter:
"blue"
}
}
},
serverPaging:
false
,
schema: {
data:
"d"
}
, pageSize: 10
});
transport: { read: "http://localhost/WebAPITest/api/Transactions", datatype: "json", headers: { Authorization: "user/password" } },
this.ComboBox = this.kendoComboBox();
this.ComboBox.setName("COMBOID");
this.ComboBox.setWidth(550);
this.ComboBox.setHeight(33);
this.ComboBox.setIndex(0);
this.ComboBox.setdataTextField("Name");
this.ComboBox.setdataValueField("ID");
this.ComboBox.setFilter("Contains");
this.ComboBox.setDataType("odata");
this.ComboBox.setserverFiltering("true");
this.ComboBox.setServerPaging("true");
this.ComboBox.setPageSize("20");
would generate the following results will :
$("#comboBox").kendoComboBox({
index: 0,
dataTextField: "Name",
dataValueField: "Id",
filter: "contains",
dataSource: {
type: "odata",
serverFiltering: true,
serverPaging: true,
pageSize: 20,
transport: {
read: "http://odata.netflix.com/Catalog/Titles" } } });
thanks.