Home - Forums-.NET - FlyTreeView (ASP.NET) - Refresh a trees' root nodes without postback?

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Refresh a trees' root nodes without postback?
Link Posted: 19-Sep-2007 23:43
Hi,
I've asked earlier how to refresh a nodes' child nodes. That's quite easy, thanks to Evgenyi, as one can use the nodes' populateOnDemand. So, if one needs to refresh Node_A, one can use the Node_A.getParent() and do the same. But what to do, if a node is a root node, it has no parents?
The tree offers postBack(), but that brings all the issues the FTV so elegantly avoids in populateOnDemand.
Is there a way to refresh the root nodes doing anything similar?
Best regards,
rawaho
Link Posted: 20-Sep-2007 01:13
Actually, root nodes cannot be loaded on demand. Server-side and client-side flytreeview objects do not have this functionality.

Of course it can be implemented in a custom fashion with callbacks to page that returns nodes to be added to root at client-side though client-side treeview API.
But this is rather a task for experienced AJAX developer.

Using the UpdatePanel from ASP.NET AJAX (former ATLAS) extension looks like much easier solution. But it requires ASP.NET AJAX modules to be enabled for the whole web application. In many cases it is not so reasonable.
Link Posted: 20-Sep-2007 01:38
Thanks a lot for the info.
Best Regards,
rawaho
Link Posted: 24-Sep-2007 03:19
Hi,
this works nearly. I've got issues with the Tooltip and the Icon, both methods return \"Object doesn't support this property or method\".
      var ndNew = new CFlyTreeNode();
      ndNew.setText('My Test'); //works fine
      ndNew.setToolTip('Hello World'); //error
      ndNew.setImageUrl('index.html');//error

Do you think it is possible to fix this in a minor release?
BR,
rawaho
Link Posted: 24-Sep-2007 04:05
Yes, possible.

Is already available at downloads section.
Link Posted: 24-Sep-2007 07:14
Thanks, I've upgraded to the latest version. Now the call
ndNew.setAttribute('Hello', 'World');
runs into an exception: value is undefined. Maybe a typo in the FTV-js?
Best regards,
rawaho
Link Posted: 24-Sep-2007 22:47
A typo, but internal one. Already fixed, will be available for download in minutes.

We had some internal variables naming changes. But it looks like we need to check it again.
Thanks for report.