I need to get all row data from jqGrid when I click the link in the same row using jQgrid

I am new to JQgrid and don't know how to handle this use case.

When a user clicks on a link in a specific row in jQgrid, I need to get the data of a row with a delimiter.

+3
source share
3 answers

The answer to this question is that when you click on the rows, you will have a unique value for each row, from which we need to get the identifier and using the jQgrid function.

With getRowDatawe can get the column values ​​of a row.

An example example will be inserted below:

var reqlaborId = jQuery("#list1").jqGrid('getRowData', id);
reqlaborId = reqlaborId.ahcc_laborcan_header_id;

This works great for me ...

+1
source

Getting raw row data from jqGrid

OR

jqGrid

..

, , ... queryString.. index.php? id = 123, u..

+1
var newKey=jQuery("input[name='key']").val();

where "key" is the name of the column

+1
source

Source: https://habr.com/ru/post/1790722/


All Articles