title: How to get row id or parameter from dataurl in jqgrid to create a dynamic select list to edit row
body: <p>I have an ASP.NET website with a C# back-end that uses Jqgrid.</p>
  
  <p>I want users to be able to select an item in the grid to edit. One of the fields that can be edited will be presented to users as a drop-down selection list with only valid options for that user.</p>
  
  <p>For example, let's say I have a grid displaying persons. If "person1" is edited, the user may be able to choose "blue" or "red" from the selection list for this item, but if "person2" is edited the user may only choose "yellow" or "green" from the selection list.</p>
  
  <p>I want to dynamically populate the selection list based on what person/row is selected.</p>
  
  <p>I have editoptions and dataurl set on the specific field as follows:</p>
  
  <pre><code>editoptions: { dataUrl: 'FetchData.aspx' }
  </code></pre>
  
  <p>Yet, I somehow need some kind of parameter to pass to the FetchData.aspx page so that it can do its background-checking on the specific person and create the correct list for the specific "person".</p>
  
  <p>I was hoping I could pass the rowid or itemname or something as follows to identify the specific row/item that is selected:</p>
  
  <pre><code>editoptions: { dataUrl: 'FetchData.aspx?selecteditem=' + Id }
  </code></pre>
  
  <p>How can I pass a parameter so that I can create the correct list of items for the specific item? There are countless similar questions on the web, but I haven't been able to find a conclusive answer...</p>