title: yii jqtree with render inside
body: <p>I want to know if its possible to render a view inside a treeview using jqtree or another extension with yii. I'm trying to do that with jqtree with no result. Something like that:</p>
  
  <pre><code>    $dataTree = array(
                  array(
                      'label' =&gt; 'node1',
                      'children' =&gt; array(
                          array('label' =&gt; 'child2'.$this-&gt;renderPartial('_nps_level_form',array('rawdatalevel'=&gt;$secondrawdatalevel,'idgeolevel'=&gt;$value),true,false)),
                          array('label' =&gt; 'child2'),
                      ),
                  ),
                  array(
                      'label' =&gt; 'node2',
                  )
              );
  
              $this-&gt;widget('ext.yii-jqTree.JQTree', array(
                  'id' =&gt; 'treeview',
                  'data' =&gt; $dataTree,
                  'dragAndDrop' =&gt; true,
                  'selectable' =&gt; true,
                  'saveState' =&gt; true,
                  'autoOpen' =&gt; false,
                  'htmlOptions' =&gt; array(
                      'class' =&gt; 'treeview-red',
                  ),
              ));
  </code></pre>
  
  <p>What I get when I do that is something like this:</p>
  
  <pre><code>    node1
      child2 &lt;div style="border: 1px solid #ddd; margin: 0 auto; width: 700px; height: 70px; padding-top: 10px; border-radius: 5px;"&gt; &lt;div style="margin-left: 25px; margin-bottom: 30px; float: left;"&gt; &lt;div style=" font-weight: 700; font-size: 0.9em; line-height: 1em; color: #454447;"&gt; NPS: &lt;/div&gt; &lt;div style="font-family: 'Open Sans Condensed', Verdana, sans-serif; font-weight: 700; font-size: 40px; line-height: 1em; letter-spacing: -2px; text-indent: -8px; color: #C78D05; text-align: center;"&gt; 0.0% &lt;/div&gt; &lt;/div&gt; &lt;div style="width: 100px; margin-left: 40px; float: left;"&gt; &lt;a style="text-decoration: none; color: #454447;" href="/index.php?r=npsTicket/index&amp;type=promotor"&gt; &lt;span style="font-weight: 700; font-size: 10px; font-family: 'Open Sans Condensed', Verdana, sans-serif; text-transform: uppercase;"&gt;Promotors&lt;/span&gt;&lt;br&gt; &lt;span style="font-family: 'Open Sans Condensed', Verdana, sans-serif; font-weight: 700; font-size: 20px; line-height: 1em; letter-spacing: -2px; text-indent: -8px; color: #89A54E;"&gt; 0% &lt;/span&gt; &lt;span&gt; &lt;/span&gt; &lt;/a&gt; &lt;/div&gt; &lt;div style="width: 100px; float: left;"&gt; &lt;a style="text-decoration: none; color: #454447;" href="/index.php?r=npsTicket/index&amp;type=detractor"&gt; &lt;span style="font-weight: 700; font-size: 10px; font-family: 'Open Sans Condensed', Verdana, sans-serif; text-transform: uppercase;"&gt;Detractors&lt;/span&gt;&lt;br&gt; &lt;span style="font-family: 'Open Sans Condensed', Verdana, sans-serif; font-weight: 700; font-size: 20px; line-height: 1em; letter-spacing: -2px; text-indent: -8px; color: #AA4643;"&gt; 0%   &lt;/span&gt; &lt;span&gt; &lt;/span&gt; &lt;/a&gt; &lt;/div&gt; &lt;div style="width: 100px; float: left;"&gt; &lt;span style="font-weight: 700; font-size: 10px; font-family: 'Open Sans Condensed', Verdana, sans-serif; text-transform: uppercase;"&gt;Passives&lt;/span&gt;&lt;br&gt; &lt;span style="font-family: 'Open Sans Condensed', Verdana, sans-serif; font-weight: 700; font-size: 20px; line-height: 1em; letter-spacing: -2px; text-indent: -8px; color: #F2C452;"&gt; 0%&lt;/span&gt; &lt;span&gt; &lt;/span&gt; &lt;/div&gt; &lt;div style="width: 86px; margin-left: 8px; margin-top: -8px; float: left;"&gt; &lt;/div&gt; &lt;div style="text-align: center; margin-top: 5px; float: left; width: 120px; font-weight: 700; font-size: 10px; font-family: 'Open Sans Condensed', Verdana, sans-serif; text-transform: uppercase;"&gt; Total Answered:&lt;br&gt; &lt;span style="font-size: 1.9em; color: #439AA8;"&gt;0%&lt;/span&gt; &lt;span style="font-size: 1.9em; color: #454447;"&gt;&amp;nbsp;-&amp;nbsp;&lt;/span&gt; &lt;span style="font-size: 1.9em; color: #439AA8;"&gt;0&lt;/span&gt; &lt;/div&gt; &lt;/div&gt;
     child2
     node2
  </code></pre>