title: How to pass data to url from jqgrid row if hyperlink is clicked
body: <p>jqGrid contains quantity column and add to cart button using colmodel below. Inline editing 
  is used to fill quantity.
  If quantity is fileld and add to cart link on other column is clicked, entered quanty is not passed to AddToCart controller.  Product id from id field in json data is passed correctly.</p>
  
  <p>How to pass selected quantity to AddToCart controller (using invoked url query string or something other) ?</p>
  
  <p>colmodel is:</p>
  
  <pre><code>{"label":"AddToCart",
   "name":"Addtocrt_addtocrt",
   "formatter":"showlink",
   "formatoptions": {"baseLinkUrl":"http://MySite.com/Store/AddToCart"}
   },
  
  {"label":"Quantity",
    "name":"Stocks_valkogus",
    "editoptions":{"maxlength":10 }
    "editable":true
     }
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>Data from server is in json format and row editing mode is used.
   <code>rowData.Stocks_valkogus</code> returns undefined.</p>
  
  <p>I tried code below. alert box shows that quantityVal is undefined.
  How to retrieve entered quantity?</p>
  
  <pre><code>{"name":"Addtocrt_addtocrt",
   "formatter":"dynamicLink",
   "formatoptions":{"onClick":addToCartOnClick
  }}
  
  function addToCartOnClick(rowId, iRow, iCol, cellValue, e) {
      var iCol = getColumnIndexByName($grid, 'Stocks_valkogus') ,
         quantityVal = $('#' + $.jgrid.jqID(rowId) + '&gt;td:nth-child(' + (iCol + 1) + '&gt;input').val();
      alert(iCol); // returns 3 
      alert(quantityVal); // returns undefined. 
      window.location = 'Store/Details?' + $.param({
          id: rowId,
          quantity: quantityVal
      });
  }
  </code></pre>