Yes, not a fix, but rather a workaround - see the code bellow:
[code]
<%@ Register Assembly="NineRays.WebControls.FlyTreeView" Namespace="NineRays.WebControls"
TagPrefix="NineRays" %>
Untitled Page
var treeview;
var exto;
var lastnode;
function flyTreeView_onInitialized(treeviewObject)
{
treeview = treeviewObject;
exto = document.getElementById('').value;
window.setTimeout(function() {delayedExpandNodeOrTreeView(null, treeviewObject);}, 200);
}
function onNodeEventHandler(sender, node, eventType)
{
if (eventType == 'populated')
{
window.setTimeout(function() {delayedExpandNodeOrTreeView(node, null);}, 200);
}
}
function delayedExpandNodeOrTreeView(node, treeview)
{
var nodes;
if (node && node.getLevel() < exto)
{
nodes = node.getChildNodes();
}
else if (treeview && exto > 0)
{
nodes = treeview.getNodes();
}
for (var i = 0; nodes && (i < nodes.length); i++)
{
nodes[i].expand();
}
}
[/code]
Anyways, I do not completely get the idea. From my point of view, you cat set ExpandLevel or expand certain levels of nodes at server-side. So all required nodes will be rendered with the page and do not require additional callbacks, etc.