Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a cell value in JQGrid?

How to get a cell value in JQGrid?

If I use the following syntax –

var ret = jQuery("#MyGrid").jqGrid('getRowData', id);
ret = ret.ProductId;

it returns the following HTML.

'input class="editable" name=" ProductId " id="0_ ProductId " style="width: 98%;" type="text"'

I actually need the value of the cell.

Thanks. Dev

like image 382
dev Avatar asked Apr 04 '10 05:04

dev


People also ask

How to get cell value in jqGrid?

How to get a cell value in JQGrid? var ret = jQuery("#MyGrid"). jqGrid('getRowData', id); ret = ret.

How do I select a row in jqGrid programmatically?

UPDATE: Free jqGrid supports multiPageSelection:true option strarting with the version 4.10. 0. The option allows to set selection of multiple rows in the grid very easy (and it works very quickly, because it set selection state directly during creating the body of the grid).


1 Answers

If you only need the value of a cell that has already been saved, you can get it with this

$('#myTable').jqGrid('getCell',row_id,'column_name');
like image 194
HomeSlice Avatar answered Oct 26 '22 14:10

HomeSlice