Hello,
I’m using 3 grids
Using
$opt[“detail_grid_id”]
$opt[“subgridparams”]
I’m passing values from grid 1 to grid 2 and from grid 2 to grid 3
But now I need in grid 3 also a value of grid 1.
How can I pass the value of grid 1 to grid 3?
Kind regards
1 Answers
Hello,
To get the selected row’s data from any grid, you can use this code:
var grid = $("#list1").jqGrid(); var selectedRow = grid.getGridParam('selrow'); var invdate = grid.jqGrid('getCell', selectedRow, 'invdate');
Above code will read the column ‘invdate’ data of selected row of grid with id list1.
Your Answer