I am developing an ASP.NET mvc project that uses JqGrid to generate a report. To generate reports, I generate 2 different reports. A second report will be created based on the values of the first report. To get the column values, I use the OnCellSelect event for JqGrid,
Event:
$('#Report1').jqGrid({
...
..
colNames: ['name1','name2','name3','name4','name5','name6','name7'],
colModel: [
{....},
{ ... },
{ ...},
{...},
{ ...},
{ ...},
{ ... }
],
jsonReader: {
root: 'DD_data',
id: 'name1',
repeatitems: false
},
pager: $('#pager'),
onCellSelect: function (rowid, index, contents, event) {
$('#Report2').jqGrid({
...
...
});
}
});
Here, in the Cell Select event, I get only the rowid code, my key and selected cell.
But I also need names2, name3 and name4 from the selected column to create a second report.
Is this possible in JqGrid.
Any help is appreciated.
source
share