title: How to setup jqGrid Cell Editing Events?
body: <p>I have an input box in a jqGrid grid that displays utilizeds the JQuery Hint plugin to add some text to blank input boxes when a user edits a row of my grid. In the event that the user doesn't modify a text box that contains the hint text, I need to remove the hint (reverting the textbox to its empty state) before saving.</p>
  
  <p>I assume the beforeSaveCell event is the way to go on this, as described in <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3acell_editing" rel="nofollow">the documentation</a>. However, I can't for the life of me figure out how to get Cell Editing events to fire. The docs state:</p>
  
  <blockquote>
    <p>These events are related to cell editing and should be used in grid options.</p>
  </blockquote>
  
  <p>I assume that means I should put this in the config like so:</p>
  
  <pre><code>$("#myGrid").jqGrid({
    url:'url.php',
    datatype: 'json',
    pager: '#pager',
    hidegrid: false,
    cellEdit: true,
    beforeSaveCell: beforeSaveFunction,
    ...
  </code></pre>
  
  <p>However, my function doesn't seem to fire when setup like above. Putting the function in the colModel didn't work either. For some reason, I couldn't find any examples... what am I doing wrong?</p>
  
  <p>Thanks!</p>