Hi
I'm working in JQgrid. for a searching a USER.
If i double click on the particular user in Jqgrid , that particular user name has to reflect on my text box.
could you please help me on this.
its very urgent
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,
rowList: [5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
pager: $('#' + pager),
caption: "List Employee Details"
});
$('#' + empData).jqGrid('filterToolbar', ('#' + pager), { stringResult: true, searchOnEnter: false, defaultSearch: 'cn'});
var UserData = eval(jsondata.responseText);
for (var x = 0; x <= UserData.length; x++) {
$('#' + empData).addRowData(x, UserData[x]);
}
}
}
});