Hello!
I'm trying to generate a Jquery TreeView, from a database.
My array structure is like:
{Brazil, RioDeJaneiro, 21000}
{Brazil, RioDeJaneiro, 75300}
{Brazil, SaoPaulo, 13000}
Then, it should genereate a tree like that:
Brazil
....|_RioDeJaneiro
....|....|_21000
....|....|_75300
....|
....|_SaoPaulo
.........|_13000
HTML:
<ul id="example" class="filetree">
<li class="closed"><span class="folder">[blk_resultado2.COUNTRY;block=li;headergrp=COUNTRY]</span>
<ul>
<li class="closed"><span class="folder">[blk_resultado2.STATE;block=li]</span>
<ul>
<li><span class="file">[blk_resultado2.ZIP;block=li]</span></li>
</ul>
</li>
</ul>
</li>
</ul>
|
The HeaderGroup doesn't work in that case because the fields are nested!