Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$("#grid").kendoGrid({
dataSource:{
type:"odata-v4",
transport:{
read:"http://services.odata.org/V4/Northwind/Northwind.svc/Orders"
},
pageSize:15,
serverPaging:true,
schema:{
model:{
fields:{
OrderID:{type:"number"},
CustomerID:{type:"string"},
ShipName:{type:"string"},
ShipCity:{type:"string"},
ShipCountry:{type:"string"},
OrderDate:{type:"date"},
RequiredDate:{type:"date"},
ShippedDate:{type:"date"}
}
}
}
},
pageable:true,
filterable:true,
columns:[
{field:"OrderID",title:"Order",width:"100px",filterable:false},
{field:"CustomerID",title:"Customer",filterable:false},
{field:"ShipName",title:"Shipper",filterable:false},
{field:"ShipCity",title:"City",filterable:false},
{field:"ShipCountry",title:"Country",filterable:false},
{field:"OrderDate",title:"Ordered",width:"120px"},
{field:"RequiredDate",title:"Required", width:"120px",filterable:false},
{field:"ShippedDate",title:"Shipped", width:"120px",filterable:false},
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment