Skip to content

Instantly share code, notes, and snippets.

@jbristowe
Created April 13, 2012 03:07
Show Gist options
  • Save jbristowe/2373296 to your computer and use it in GitHub Desktop.
Save jbristowe/2373296 to your computer and use it in GitHub Desktop.
ListView Initialization with Remote DataSource (Twitter)
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "http://search.twitter.com/search.json",
contentType: "application/json; charset=utf-8",
type: "GET",
dataType: "jsonp",
data: {
q: "#KendoUI"
}
}
},
schema: {
data: "results",
total: "results_per_page"
}
});
$("#listView").kendoListView({
dataSource: dataSource,
template: kendo.template($("#template").html())
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment