Prevent Treeview (2.0) from posting back...
-
Has anyone come across a way to prevent the ASP.Net 2.0 Treeview web control from posting back on select? I know you can set the select action for the node to 'None', but then you are forced to use checkboxes to determine selected items, which is also not attractive for my purposes, since I don't want to allow multiselect. Basically, I want the same kind of functionality that is currently available from ListBox, but I need to display hierarchical data (so, really, I'm describing the IE Treeview control, I guess). The problem arises from a Treeview with (potentially) several thousand nodes in it. Each time one is selected, the page posts back forcing the entire tree to render again, which is prohibitively slow. Anybody with ideas, bring 'em on. Thanks
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
-- modified at 0:58 Tuesday 10th January, 2006