开发者

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

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.


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..


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

where 'key' is name of column


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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜