如何通过Jqgrid找到记录 [英] how to I find record through Jqgrid
本文介绍了如何通过Jqgrid找到记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在jqgrid工作
我能够将数据加载到jqgrid。搜索选项的问题。它找不到记录。并刷新按钮。
请帮我这个
I'm working in jqgrid
i can able to load the data to jqgrid. problem with the search option. it it nt finding the records. and refresh button also.
please help me on this
jQuery('#' + empData).jqGrid({
dataType: 'json',
// url: "Servicelibrary/employeesearch.aspx",
colNames: ['Employee Number', 'Employee Name'],
colModel: [
{ name: 'EmployeeNo', index: 'EmployeeNo', width: 150 ,search:true},
{ name: 'FirstName', index: 'FirstName', width: 150,search:true }
],
rowNum: 10,
sortname: 'EmployeeNo',
viewrecords: true,
sortorder: "desc",
gridview:true,
//search: true,
scroll: true,
loadonce: true,
rowList: [5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
pager: $('#' + pager),
caption: "List Employee Details"
});
$('#' + empData).jqGrid('navGrid', ('#' + pager), { edit: true, add: true, del: true, search: true, defaults: true }); //, {}, {}, {}, { search: true });
// $('#' + empData).jqGrid('navGrid', ('#' + pager), { edit: false, add: false, del: false }, {}, {}, {}, { search: true });
var UserData = eval(jsondata.responseText);
for (var x = 0; x <= UserData.length; x++) {
$('#' + empData).addRowData(x, UserData[x]);
推荐答案
(' #' + pager),
标题:< span class =code-string> 列出员工详细信息
});
('#' + pager), caption: "List Employee Details" });
(' #' + empData).jqGrid(' navGrid',(' #' + pager),{edit: true , add : true ,del: true ,搜索: true ,默认值: true }); // ,{},{},{},{search:true});
//
('#' + empData).jqGrid('navGrid', ('#' + pager), { edit: true, add: true, del: true, search: true, defaults: true }); //, {}, {}, {}, { search: true }); //
('#'+ empData).jqGrid('navGrid ',('#'+ pager),{edit:false,add:false,del:false},{},{},{},{search:true});
var UserData = eval(jsondata.responseText);
for ( var x = 0 ; x < = UserData.length; x ++){
('#' + empData).jqGrid('navGrid', ('#' + pager), { edit: false, add: false, del: false }, {}, {}, {}, { search: true }); var UserData = eval(jsondata.responseText); for (var x = 0; x <= UserData.length; x++) {
这篇关于如何通过Jqgrid找到记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文