title: In jqgrid, how do I change a value just before edit cell?
body: <p>I am trying to find out if there is a nice way in JQGrid to change the value of a cell just before it is edited. </p>
  
  <p>What I want to accoplish is that a cell holds some data and some markup, so the value is something along the lines</p>
  
  <pre><code>&lt;div style="font-size:8px"&gt;10%&lt;/div&gt;&lt;div style="font-size:10px"&gt;100&lt;/div&gt;
  </code></pre>
  
  <p>But when the user clicks on the data I only want to display </p>
  
  <pre><code>10
  </code></pre>
  
  <p>Currently when I edit it I see the whole markup and everything and I would like to hide that with some quick parsing just before the edit event. </p>
  
  <p>When I tried changeing the value in </p>
  
  <pre><code>beforeEditCell: function(rowid, cellname, value, iRow, iCol) 
  </code></pre>
  
  <p>with </p>
  
  <pre><code>setCell (rowid, colname, data, class, properties, forceup)
  </code></pre>
  
  <p>The change didn't seem to affect the content in the input field that is opened. My thesis is that the value produced for the input field maybe is put in a variable before "beforeEditCell" is triggered? </p>