3

I am new to JQgrid and am unsure how to handle this use case.

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

ahsteele
  • 26,243
  • 28
  • 134
  • 248
simbu94
  • 1,012
  • 2
  • 10
  • 22

3 Answers3

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

where 'key' is name of column

STT LCU
  • 4,348
  • 4
  • 29
  • 47
1

Retrieving original row data from jqGrid

OR

Retrieving selected rows from jqGrid

Or else..

What I had done earlier was simpler.. appended the required data in link in a column as queryString.. e.g index.php?id=123 if it can work for u..

Community
  • 1
  • 1
MalTec
  • 1,350
  • 2
  • 14
  • 33
1

The answer for the above question is ,when your are clicking on the rows you will have a unique value for each rows from that we need to get the id and by using the jQgrid function.

With getRowData we can get that row column values.

The sample example is pasted below:

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

This works fine for me...

low_rents
  • 4,481
  • 3
  • 27
  • 55
simbu94
  • 1,012
  • 2
  • 10
  • 22