Home >Web Front-end >JS Tutorial >jqGrid gets column value
var selectedIds = $("#gridTable").jqGrid("getGridParam", "selarrrow");
if (selectedIds.length != 1) {
//alert("Please select a piece of data for operation!" );
$.jBox.tip('Please select a piece of data to operate!');
return false;
}
var rowData = $("#gridTable").jqGrid('getRowData', selectedIds);
var vid = rowData.id;
var name="";
$.each(rowData, function(key, val) {
if(key=="product.productName"){
name=rowData[key];
}
// alert(rowData[key]);