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
How to get a cell value in JQGrid? var ret = jQuery("#MyGrid"). jqGrid('getRowData', id); ret = ret.
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).
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');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With