or
IIHS.EditPlanningVehicle.RefreshSeries =
function
(planningYear, makeName) {
//Load a new list of options for vehicle definitions
$.getJSON($(
"#mainForm #LoadNewListFormat"
).val().replace(
"makeName"
, makeName).replace(
"planningYear"
, planningYear),
function
(data) {
$(
"#SourceVehicleVariantsId"
).kendoComboBox(data);
});
};
dataSource: {
type: "odata",
transport: {
},
pageSize: 5,
serverPaging: true,
serverSorting: true
},
dataSource: {
type: "odata",
transport: {
},
serverPaging: true,
serverSorting: true,
serverFiltering: true,
pageSize:6,
filter: { field: "EmployeeID", operator: "eq", value: e.data.EmployeeID }
},
dataSource: {
transport: {
read: {
url: "/site/GetEmployee.action",
dataType: "json",
},
},
pageSize: 5,
serverPaging: true,
serverSorting: true
},
dataSource: {
transport: {
read: {
url: "/site/GetOrders.action",
dataType: "json",
},
},
serverPaging: true,
serverSorting: true,
serverFiltering: true,
pageSize:6,
filter: { field: "EmployeeID", operator: "eq", value: e.data.EmployeeID }
},
In the Web demos section, there is a grid which displays its data in a master/detail type format. The demo Iām referring to can be found here:
The grid pulls the data from the following services/feed:
http://demos.kendoui.com/service/Northwind.svc/Employees?$format=json&$inlinecount=allpages&$callback=callback&$top=5
http://demos.kendoui.com/service/Northwind.svc/Employees%281%29/Orders?$format=json&$inlinecount=allpages&$callback=callback&$top=5
Thanks,
gridMain = $("#gridMain").kendoGrid({
dataSource: dsMain,
height: 500,
filterable: true,
scrollable: true,
pageable: false,
selectable: 'row',
sortable: true,
columns : [
{
field: "dt",
title: "Tarih",
width: "120px"},
{
field: "defi",
title: "AƧıklama"},
/*{
field: "amn_tot",
title: "Toplam Tutar",
width: "120px"},*/
{
field: "id",
title: "İÅlemler",
template: actionTemplate,
width: "130px"}
],
change : function(e) {
selectedRows = [];
for (var i = 0, l = this.select().length; i < l; i++) {
var xid = this.select()[i].dataset.id;
selectedRows.push(xid);
};
//console.log(selectedRows);
/*
console.log(this.dataSource.view()[this.select()
.index()]["id"]);
*/
}
});