本文介绍了JqGrid在第一次加载时不显示数据。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
点击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) } });
更多推荐
JqGrid在第一次加载时不显示数据。
发布评论