I try to display a treeview that I build with ul and li from a ajax call:
<div class="demo-section">
<ul id="555804139789770" class="treeview">
<li data-expanded="true">Niveau 1
<ul>
<li data-expanded="true" id="1234">Niveau 1.1
<ul>
<li data-expanded="true" id="123456">Niveau 1.1.1
<ul>
<li data-expanded="true" id="1234567">Niveau 1.1.1.1
</li>
</ul>
</li>
</ul>
</li>
<li data-expanded="true" id="12345">Niveau 1.2
</li>
</ul>
</li>
</ul>
</div>
There is my javascript
$(".treeview").livequery(function() {
$(this).kendoTreeView({
});
});
It works but it's slow
Do you have an other way to do that
<div class="demo-section">
<ul id="555804139789770" class="treeview">
<li data-expanded="true">Niveau 1
<ul>
<li data-expanded="true" id="1234">Niveau 1.1
<ul>
<li data-expanded="true" id="123456">Niveau 1.1.1
<ul>
<li data-expanded="true" id="1234567">Niveau 1.1.1.1
</li>
</ul>
</li>
</ul>
</li>
<li data-expanded="true" id="12345">Niveau 1.2
</li>
</ul>
</li>
</ul>
</div>
There is my javascript
$(".treeview").livequery(function() {
$(this).kendoTreeView({
});
});
It works but it's slow
Do you have an other way to do that