Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using ASP.NET Treeview. I need to populate it upon entering a search criteria in a text box and clicking a button. I want to avoid posting the whole page. I can very easily achieve not posting the whole page, by client callback, but the issue comes when I have to populate the Treeview in JavaScript. As far as I know, I have to create all the levels as HTML Table - row/cells, adding my own expand and collapse event handlers, etc., which I want to avoid. I want to be able to use the already available features of the treeview PopulateOnDemand and PopulateNodesFromClient features. That works fine on the Treeview action when I click the rootnode or any subsequent nodes, without any issue, when say the initial input to my webservice call is hardcoded to get the treeview data. My main issue is how do I populate the treeview initially with the entered input and button click on the client side. Some kind of binding the datasource to the Treeview is needed on the client side - whether I do the old traditional way of client callback or using the AJAX like - C# method on the aspx markup itself.
Posted
Updated 24-Aug-10 7:42am
v4

1 solution

Did you had a chance to look at these:
Cross Browser (JavaScript/DHTML) TreeView[^]
Easy DHTML treeview[^]

There are few more client side treeviews. Go through the CP search and look at them.
 
Share this answer
 
Comments
LotusShiv 24-Aug-10 13:32pm    
I don't have the choice of using any other treeview controls. Hence I have to work with ASP.Net Treeview.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900