title: Showing sparkine in tree jqgrid
body: <p>I need to show a line graph inside a jqgrid. So, I come across this <a href="https://stackoverflow.com/questions/5426352/how-can-i-populate-a-jqgrid-cell-with-a-sparkline-graph">question</a></p>
  
  <p>Here in this question, it is shown how easily we can show sparkline graph in jqgrid cell. I used the same thing and it worked but
  the problem is mine is a tree grid. So, here only parent node are populating not the child nodes. </p>
  
  <p>This is my code</p>
  
  <pre><code> loadComplete: function () {
                  var ts = this;
                  if (ts.p.reccount === 0) {
                      $(this).hide();
                      emptyMsgDiv.show();
                  } else {
                      $(this).show();
                      emptyMsgDiv.hide();
                  }
                  var index = getColumnIndexByName('col_chart');
                  $('tr.jqgrow td:nth-child('+(index+1)+')').each(function(index, value) {
                  var ar;
                      try {
                          var chartData = [];
                          var height;
                          height = $(this.innerHTML.split(','));
                          for(i=0;i&lt;height.length;i++){
                              chartData.push(height[i]);
  
                          }
  
                          ar = chartData;
                          var largest = Math.max.apply(Math, ar);
                          if (ar &amp;&amp; ar.length&gt;0) {
                              console.log(ar);
                          $(this).sparkline(ar,{
                          type: 'line',
  
                          tooltipFormat: "{{y:value}}",});
                          }
                      } catch(e) { alert (true);}
                  });
              } 
  </code></pre>
  
  <p>I checked by using console everything is working fine as expected only chart is not shown.</p>
  
  <p>Can anyone please tell me what is wrong here?</p>