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.