JqG​​rid在第一次加载时不显示数据。

编程入门 行业动态 更新时间:2024-10-27 10:31:45
本文介绍了JqG​​rid在第一次加载时不显示数据。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

点击LoadData按钮我正在加载jqgrid数据但是我第一次点击它没有加载的按钮并且这里没有显示我的代码

On click of LoadData button i am loading jqgrid data but at first time i click the button it does not load and display nothing here is my code

var $JqtblAuditQuestions = $("#JqtblAuditQuestions");

$JqtblAuditQuestions.jqGrid({ colNames:AuditcolNames, colModel:AuditcolModel, viewrecords: true, gridview: true, altRows:true, altclass:'myAltRowClass', sortable: true, loadtext: "Loading...", emptyrecords: "No records to view", width: '100%', height:'100%', ondblClickRow: function(rowId) { tblAuditQuestionsLeftDoubleClick(rowId) } });

$JqtblAuditQuestions.jqGrid('clearGridData'); $JqtblAuditQuestions.jqGrid('setGridParam', { datatype: "local", data: tdata, rowNum: 50 }).trigger("reloadGrid");

<<div id="tblAuditQuestions" style="width: 100%; height: 100%;"> <span id="JqtblAuditQuestionsEmpty" class="TrebuFont10" style="display: none">Questions do not exist.</span> <table id="JqtblAuditQuestions" style="width: 100%; height: 100%; vertical-align: middle; background-color: #869ca7;"> </table> </div>

任何帮助对我来说都很棒。

any help would be great for me.

推荐答案

JqtblAuditQuestions = JqtblAuditQuestions =

( #JqtblAuditQuestions); ("#JqtblAuditQuestions");

JqtblAuditQuestions.jqGrid({ colNames:AuditcolNames, colModel:AuditcolModel, viewrecords:true, gridview:true, altRows:true, altclass:'myAltRowClass', sortable:true, loadtext:Loading ..., emptyrecords:没有要查看的记录,宽度:'100%',高度: '100%', ondblClickRow:function(rowId){ tblAuditQuestionsLeftDoubleClick(rowId)} }); JqtblAuditQuestions.jqGrid({ colNames:AuditcolNames, colModel:AuditcolModel, viewrecords: true, gridview: true, altRows:true, altclass:'myAltRowClass', sortable: true, loadtext: "Loading...", emptyrecords: "No records to view", width: '100%', height:'100%', ondblClickRow: function(rowId) { tblAuditQuestionsLeftDoubleClick(rowId) } });

更多推荐

JqG​​rid在第一次加载时不显示数据。

本文发布于:2023-10-12 21:41:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1485978.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   数据   JqG   rid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!