User569149469 posted
jQuery("#jqgrid").jqGrid({
datatype: 'Json',
mtype: 'GET',
url: '@Url.Action("SearchGridData", "GenericData")',
width: "auto",
height: '490',
rowNum: 999999,
scroll: true,
colNames: ['Id', ' Name', 'Test', 'Location'],
colModel: [
{
name: 'Id',
index: 'Id',
width: 60,
sorttype: "int"
},
{
name: 'Name',
index: 'Name',
width: 100
},
{
name: 'Test',
index: 'Test',
width: 100
},
{
name: 'Location',
index: 'Location',
width: 100
}
],
pager: "#pager",
viewrecords: true,
multiselect: true,
caption: "Search Results",
emptyrecords: 'No records to display',
deleteSelected: function (grid) {
alert("ci siamo");
}
});
jQuery("#pager").navGrid('#pager', { edit: false, add: false, del: true, search: false }, {}, {}, {});
}
I have a apply button which on click need to send data to controller the selected rows how to do it