我有一个剑道ui网格。假设指向网格的JS变量称为grid
。如何以编程方式转到第3页?感谢。
答案 0 :(得分:71)
答案 1 :(得分:9)
Answer is just set it pate: 1 when datasource created
var dataSource = new kendo.data.DataSource({
data: [
{ name: "Tea", category: "Beverages" },
{ name: "Coffee", category: "Beverages" },
{ name: "Ham", category: "Food" }
],
page: 1,
// a page of data contains two data items
pageSize: 2
});