Treeview Control Expand Collapse

Discussion in 'ASP .Net Web Controls' started by Reeya, Jan 31, 2005.

  1. Reeya

    Reeya Guest

    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.


    Reeya, Jan 31, 2005
    1. Advertisements

  2. 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!
    Kostadin Kostov, Jan 31, 2005
    1. Advertisements

  3. Reeya

    Reeya Guest

    Thanx for your help Kostadin. Will play with that ...

    Thanx mate!
    Reeya, Jan 31, 2005
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.