0
我使用Kendo UI Grid创建了一个项目,它在Chrome和Mozilla中运行得非常好。网格可以自动刷新。但在探险家,它不能!只有第一次(页面第一次打开时)数据源工作(脚本),然后数据源不能在刷新时间工作。Kendo UI网格不会在Internet Explorer中自动刷新
这两情况下,电网无法刷新:
- 当我从“EDİTPAGE”回来,我可以在网格看到更新后的值。但在Chrome和Mozilla中,我可以看到。
我有一个名为
setInterval
的自动刷新命令,网格无法在资源管理器中再次刷新。它只能在Chrome和Mozilla中刷新。setInterval(function() { $("#grid").data("kendoGrid").dataSource.read(); }, 10000); /// not work! $(document).ready(function() { $("#grid").kendoGrid({ sortable: true, pageable: { input: true, numeric: false, buttonCount: 5, pageSizes: true }, autoBind: true, height: 500, selectable: "row", dataSource: { pageSize: 5, transport: { read: "/Home/Getdata", //// here works one time in explorer. Then it's not work. I change page and come back again but not work. type: "json" }, schema: { data: "data", total: "total" }, serverPaging:true }, change: function (e) { var item = this.dataItem(this.select()); win.content(template(item)); win.open(); }, rowTemplate: kendo.template($("#rowTemplate").html()),altRowTemplate: kendo.template($("#altTemplate").html()) }).data("kendoGrid");
我使用IE 11.我使用kendoui web 2013开源..在例子中,自动刷新是工作。但在我的项目中没有。 –
我将首先使用我发布的链接中的示例。在$(document).ready()中移动setInterval函数。 – Todd
我看IE网络..当我点击“Allways刷新服务器”我的网格可以刷新。但是当我重新点击它时,它不起作用。它给出的结果是304 .... –