Raj*_*jni 6 kendo-ui kendo-grid
嗨,我对kendo UI非常新,所以在下面的修复中需要帮助,
我正在使用如下的kendo grid UI进行分页:
<script>
$(document).ready(function(){
$("#table3").kendoGrid({
dataSource: {
pageSize: 10
},
pageable: true,
enter code hereheight:300,
sortable: true,
});
$("#table3").show();
});
</script>
当用户在页面中编辑记录时,他被重定向到具有该记录详细信息的编辑页面,因此我需要当前页码,因为在页面中编辑记录后,我需要在保存该记录的详细信息后将用户重定向到同一页面.我在coldfusion页面中使用它.请帮忙.
提前致谢
你在追求的是:
http://docs.kendoui.com/api/web/pager#methods-page
// get the page
var currentPage = grid.dataSource.page();
// later set the page
grid.dataSource.page(currentPage );
Run Code Online (Sandbox Code Playgroud)
但是我对从网格到编辑页面的重定向感到困惑,为什么这样做呢?Kendo具有内联批量编辑和弹出编辑功能,如果您移动到其他页面,它将变得更加复杂.
仅供参考:http://demos.kendoui.com/web/grid/editing.html
| 归档时间: |
|
| 查看次数: |
10614 次 |
| 最近记录: |