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.

    Regards.

    Reeya
     
    Reeya, Jan 31, 2005
    #1
    1. Advertising

  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!

    "Reeya" wrote:

    > 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.
    >
    > Regards.
    >
    > Reeya
    >
     
    Kostadin Kostov, Jan 31, 2005
    #2
    1. Advertising

  3. Reeya

    Reeya Guest

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

    Thanx mate!


    "Kostadin Kostov" wrote:

    > 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!
    >
    > "Reeya" wrote:
    >
    > > 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.
    > >
    > > Regards.
    > >
    > > Reeya
    > >
     
    Reeya, Jan 31, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gönen EREN
    Replies:
    4
    Views:
    4,118
    Gönen EREN
    Aug 16, 2003
  2. Edwin Knoppert
    Replies:
    1
    Views:
    5,234
    Edwin Knoppert
    Nov 9, 2005
  3. vivek
    Replies:
    2
    Views:
    6,297
    pushp
    Jun 14, 2007
  4. jim
    Replies:
    0
    Views:
    586
  5. M.L.
    Replies:
    9
    Views:
    321
Loading...

Share This Page