Treeview Control Expand Collapse



Hi All.

I want to know if a Treeview can be expanded and collapsed without
refreshing the page. I have a scenario where i have a lot of categories and
subcategories in the Treeview, since the list becomes very long, i would like
the Treeview to collapse the remaining nodes when a particular node is
expanded. I understand that this behavior is because expanding the node
triggers an event and hence the page gets refreshed.

Can i somehow, change this behavior, so that when i expand the node, it
displays the sub Categories without refreshing the page? All the nodes are
prepopulated with categories / subcategories within them.

Any advice would be much appreciated.





Kostadin Kostov

I think it can be expanded and collapsed without refreching the page, but you
should handle the expand/collapse event on the client site and you should
write some javascript for doing it.

Hope this helps!


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question