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',
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,
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 });
var UserData = eval(jsondata.responseText);
for (var x = 0; x <= UserData.length; x++) {
$('#' + empData).addRowData(x, UserData[x]);