Skip to content

Instantly share code, notes, and snippets.

@lohithgn
Created October 21, 2014 07:33
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/ea8f512a6ea947c6b3dc to your computer and use it in GitHub Desktop.
Save lohithgn/ea8f512a6ea947c6b3dc to your computer and use it in GitHub Desktop.
$(document).ready(onReady);
function onReady()
{
$("#btnSearch").kendoButton({
click:onSearch
})
$("#kGrid").kendoGrid({
dataSource:{
type:"odata",
transport:{
read:"http://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
},
schema:{
data:function(data){
return data.d.results
},
total:function(data){
return data.d.__count
},
},
serverPaging:true,
serverFiltering:true,
pageSize:20
},
height:550,
pageable:true,
columns:[
'CustomerID',
'CompanyName',
'ContactName',
'ContactTitle',
'Address',
'City',
'PostalCode',
'Country'
]
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment