It takes 3 clisk to have the call of the method.
The html code is:
Code:
<div id="cc" class="easyui-layout">
<div id="west" data-options="region:'west',title:'Régates',split:true">
<ul id="treev" class="easyui-tree" data-options="animate:true,checkbox:true">
</ul>
</div>
<div id="center" data-options="region:'center',title:'Carte'"></div>
<div data-options="region:'south',title:'Log'">
<div id="sud" class="easyui-layout" data-options="fit:true">
<div id="log" data-options="region:'center',border:false"></div>
<div id="status" data-options="region:'south'">
<table class="statusTable">
<tr>
<td><div id="mode">Mode:</div></td>
<td><div id="regate">Régate:</div></td>
<td>Dernière mesure:</td>
<td></td>
<td>Heure:</td>
</tr>
</table>
</div>
</div>
</div>
</div>
maybe , the problem comes from there ?
Look at the http://jsfiddle.net/n28905u1/9/
To add data2 to the tree (onExpand method), you have to click 3 times on the first node !