Skip to content

Instantly share code, notes, and snippets.

@lohithgn
Last active July 19, 2016 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lohithgn/40e2106c14c1aa3d8fe4de774f7743ea to your computer and use it in GitHub Desktop.
Save lohithgn/40e2106c14c1aa3d8fe4de774f7743ea to your computer and use it in GitHub Desktop.
$("#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