title: Where to specify server id's using jqgrid/tabletogrid
body: <p>I am using the tableToGrid method from jqgrid to generate a grid from an existing html table. My table is defined something like this:</p>
  
  <pre><code>    &lt;table id="myTable"&gt;
          &lt;thead&gt;
           &lt;tr&gt;
              &lt;th&gt;My Title&lt;/th&gt;
          &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
             &lt;tr id="321"&gt;&lt;td&gt;Item 321&lt;/td&gt;&lt;/tr&gt;
             &lt;tr id="111"&gt;&lt;td&gt;Item 111&lt;/td&gt;&lt;/tr&gt;
             &lt;tr id="495"&gt;&lt;td&gt;Item 495&lt;/td&gt;&lt;/tr&gt;
             ...
          &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>The ids all come from the database and I will need them to perform updates.  When I call tableToGrid, it seems to overwrite all my ids with its own that just count from 1 to how ever many rows are in the table.  It would be nice if the onSelectRow method was passed the actual server id, but id that is not possible what is the best way to store the server id on the table, not display it and still have access to it for updates etc.</p>
  
  <p>My tableToGrid call is like the following:</p>
  
  <p><code>
  tableToGrid("#myTable", {
          width:230,
          height: 500,
          onSelectRow: onSelectMethod,
          colModel: [{ name: 'MyTitle', index: 'MyTitle', sortable: false}]
      });
  </code></p>
  
  <p>Thanks.</p>