title: Customizing the Add/Edit Dialog in jqGrid
body: <p>Sorry I can't post images, I'm too new.</p>
  
  <p>In jqGrid add/edit dialogs I would like to load a list of selectable items based on a selection made earlier.  In the picture above, the value selection should be loaded based on the value chosen in the criteria selection.  I believe the route to go is using the dataurl in the editoptions object but I am having issues in that regards.  The first issue that was troubling was based on the documentation <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3aform_editing" rel="nofollow">here</a> it doesn't seem like there is an event available to fire when the value of criteria changes that will allow me to update the values list.</p>
  
  <p>Also I'm confused on how the data should be returned from the ajax request.  In the documentation it says :</p>
  
  <blockquote>
    <p>Setting the editoptions dataUrl parameter The editoptions dataUrl parameter is valid only for element of edittype:select. The dataUrl parameter represent the url from where the html select element should be get. 
    When this option is set, the element will be filled with values from the AJAX request. The data should be a valid HTML select element with the desired options" </p>
  </blockquote>
  
  <p>does this mean I will need to generate the html and return this as part of the response?  Previously I had been passing all of my data using json.</p>