Home - Forums-.NET - FlyTreeView (ASP.NET) - UI doesn't refresh node list

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

UI doesn't refresh node list
Link Posted: 29-Oct-2007 05:50
Hi, I've got a control on which I'm hosting the TreeView. I've also got a dropdownlist on that same control. What I want to have happen is that when a user selects a particular value in DDL, it changes the nodes in the treeview. It appears that the data is getting updated, but the UI is not refreshing.
Link Posted: 29-Oct-2007 06:02
Do you host treeview in AJAX' update panel? Or how do you update treeview?
Link Posted: 29-Oct-2007 06:06
No, it's not in an Ajax Update panel.
Link Posted: 29-Oct-2007 06:18
You can debug your page and make sure the treeview holds required nodes (for example somewhere at Page.PreRender).

Probably you just do not re-bind treeview, so treeview just loads its nodes from viewstate.
Link Posted: 29-Oct-2007 06:28
Since I'm not performing a postback, I imagine I'll have to host in an Ajax panel.
Link Posted: 29-Oct-2007 06:40
[quote="EvgenyT"]You can debug your page and make sure the treeview holds required nodes (for example somewhere at Page.PreRender).

Probably you just do not re-bind treeview, so treeview just loads its nodes from viewstate.


Also, I'm not binding to a data source.
Link Posted: 29-Oct-2007 07:03
[quote="Toadkillerdog"]Since I'm not performing a postback, I imagine I'll have to host in an Ajax panel.

Yes, surely. You have to postback or partially-postback (through UpdatePanel control). There's no other way.