Hi,
I have the following code. In my view:
$(document).ready(function () {
$("#ListOfPeople").jqGrid({
url: '/Absence/PeopleList/',
datatype: 'json',
type: 'GET',
colNames: ['Name'],
colModel: [
{ name: 'Name', index: 'Name', width: 200, align: 'center', sortable: true, editable: false }
],
rowNum: 10,
sortname: 'Name',
sortorder: 'asc',
caption: 'List of People',
hiddengrid: false,
pager: '#nameofpeoplestoolbar',
pgbuttons: true,
pginput: false,
scroll: true,
scrollOffset:1,
autowidth:true,
sortable: true,
loadonce: true,
viewrecords:true
});
});
How can I get the Selected JQGrid ID to pass it it to a controller where it dispalys the data based on the passed value?
Thank you