我有一个剑道用户界面网格。假设指向网格的 JS 变量称为
grid
。如何以编程方式转到第 3 页?谢谢。
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
});