title: Inline Nav addRow method for jQGrid TreeGrid not working properly
body: <p>I'm trying to use the inline Nav "add new row" functionality for a jqGrid Treegrid, and so far i'm not able to configure it properly. I've read the documentation and other posts related to it but nothing is working.
  I've set the options for addRow but when I click the add row icon, a new row is added in the grid and an error pops out "Uncaught TypeError: Cannot read property 'length' of null jquery.jqGrid.src.js:8963″. Any thoughts on this? I've successfully configured the inline edit and it's working fine for me but inline add is not working as expected.</p>
  
  <p>I've checked the jqgrid src, the error comes in this snippet</p>
  
  <pre><code>if (treeg) { $("span:first",this).html(""); }
  else { $(this).html(""); }
  var opt = $.extend({},cm[i].editoptions || {},{id:rowid+"_"+nm,name:nm});
  if(!cm[i].edittype) { cm[i].edittype = "text"; }
  if(tmp == "&amp;nbsp;" || tmp == "&amp;#160;" || (tmp.length==1 &amp;&amp; tmp.charCodeAt(0)==160) ) {tmp='';}
  </code></pre>
  
  <p>This code is looking for span in the column but when I checked the column through firebug, there is no span tag rendered in the markup of that column</p>
  
  <p>Any thoughts on this?</p>