Link to home
Start Free TrialLog in
Avatar of ziorrinfotech
ziorrinfotech

asked on

how to load child nodes of tree view when parent node is selected

I have  web page and this web page has one tree view control under an update panel.
now right now i am loading all the nodes at once. but this makes the page really slow as there are tons of records in the database from where tree view is picking data.

I want to know how can i load the child nodes only when the parent node is selected.

ASKER CERTIFIED SOLUTION
Avatar of tiagosalgado
tiagosalgado
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ziorrinfotech
ziorrinfotech

ASKER

this code works, but what is happening now is when the parent nodes are loaded initially, there is no expand icon next to it. i want to have an expand icon next to the parent node so that the users know that there are child nodes below the particular parent node, if any.