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.