title: jqgrid get hidden column value with getRowData
body: <p>I've checked <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods" rel="nofollow noreferrer">the jqgrid documentation page</a>, and also <a href="https://stackoverflow.com/questions/3758915/jquery-and-jqgrid-retrieve-data-from-row">here</a>, <a href="https://stackoverflow.com/questions/15285282/jqgrid-gridcomplete-getrowdata-get-row-cell-value-from-array">here</a> and <a href="https://stackoverflow.com/questions/7179191/jqgrid-getrowdata-returns-null">here</a> but none of them answers my problem.</p>
  
  <p>I have a jqgrid with the inline navigator (the buttons at the bottom left of the grid that allow adding/editing rows) displayed.</p>
  
  <p>The grid has a hidden column, with the name <em>hidden_col</em>.</p>
  
  <p>I would like to make the following - <strong>When the user selects a row and tries to delete it</strong>, the javascript makes <strong>an alert</strong> - which <strong>shows the value of hidden_col</strong> for the selected row.</p>
  
  <p>For this, I have the following code</p>
  
  <pre><code>$("#myjqgrid").jqGrid('navGrid',"#myjqgrid_pager",
      {}, //options
      {}, // edit options
      {}, // add options
      {   mtype:"POST",
          reloadAfterSubmit:true,     //Reload data after deleting
          onclickSubmit: function(rowid)
          {           
            var rowData = $('#broadcast_table').jqGrid('getRowData', rowid);
            alert(rowData);
          }
      }, // del options
      {} // search options);
      );
  </code></pre>
  
  <p>The alert returns "[Object object]". How can I get the value of <em>hidden_col</em>?</p>
  
  <p>I tried adding</p>
  
  <pre><code>var col_value = rowData.hidden_col;
  </code></pre>
  
  <p>And</p>
  
  <pre><code>var col_value = rowData['hidden_col'];
  </code></pre>
  
  <p>But both return <em>undefined</em>.</p>
  
  <p>I checked the value in rowid - it is correct. I also know that hidden_col has a value for each row.</p>
  
  <p>What can I be doing wrong?</p>