Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

asp.net treeview control

  • 18-06-2008 10:25AM
    #1
    Closed Accounts Posts: 317 ✭✭


    Hi,

    I am using visual web developer 2008 and sql 2005 developer edition.
    What I'd like to do is to have a treeview control for customers.

    So the treeview would look like
    A-C
    D-F
    G-I
    J-M
    etc
    etc

    When they click the plus sign, I'd like the customers name to be populated down on the child nodes.

    Can anyone advise on how to do this, been searching google but nothing major yet.

    Do I hard code the A-C, D-F etc and then populate the child node names via a stored proc ?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 2,494 ✭✭✭kayos


    Tree View samples

    Check the above and look at populate on demand that should get you underway.

    Just to say the I've never come across a decent TreeView in terms of performance so if your going to be loading the tree up with a lot of nodes be prepared to wait a while.


  • Closed Accounts Posts: 317 ✭✭tiptap


    kayos wrote: »
    Tree View samples

    Check the above and look at populate on demand that should get you underway.

    Just to say the I've never come across a decent TreeView in terms of performance so if your going to be loading the tree up with a lot of nodes be prepared to wait a while.

    Hi Kayos,
    Thanks for that.
    Would you have any other recommendations then instead of a treeview.

    I'm basically just wanting a nice way to represent about 500 customers rather than having them on a gridview.


  • Registered Users, Registered Users 2 Posts: 2,494 ✭✭✭kayos


    With 500 nodes and loading most of those on demand you should get away with it.

    As for other ways of displaying 500 customers..... How about just giving a search facility with some autocomplete? It all depends do you really need to show all 500 or is it just provide a way of accessing client records?


  • Closed Accounts Posts: 317 ✭✭tiptap


    kayos wrote: »
    With 500 nodes and loading most of those on demand you should get away with it.

    As for other ways of displaying 500 customers..... How about just giving a search facility with some autocomplete? It all depends do you really need to show all 500 or is it just provide a way of accessing client records?

    I dont need to display all 500 customers at once, but I'll like a way that they can search easily for the customers and I thought by drilling down through the alphabet might be one way.


  • Registered Users, Registered Users 2 Posts: 2,494 ✭✭✭kayos


    tiptap wrote: »
    I dont need to display all 500 customers at once, but I'll like a way that they can search easily for the customers and I thought by drilling down through the alphabet might be one way.

    Well if they are going to search a Tree View broken down by alphabet then they will need to know the name they are looking for. A TextBox with autocomplete could be a good alternative in that case.


  • Advertisement
Advertisement