passing variable from grid1 to grid3

Questionspassing variable from grid1 to grid3
Hendrickx Willy asked 3 years ago

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
Abu Ghufran Staff answered 3 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

0 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?