Results 1 to 4 of 4

Thread: Multiple Selection with a Tree View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Multiple Selection with a Tree View

    Is it possible to make a treeview have multiple selections? I would be willing to use the checkboxes if I could keep some nodes from having the checkboxes. Is any of this possible?
    Thanks

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Multiple Selection with a Tree View

    nope. You would have to create your own, that functionality is not built into the treeview. The best you could do with the stock treeview, is to give all nodes checkboxes, but via code, disallow checking/unchecking of specific boxes

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Multiple Selection with a Tree View

    Any suggestions on what I might use then? This is what I am trying to do. The [] is where the check box would be. The user would only be seelcting items with a check box.

    HTML Code:
    -Board 1
         - Channel 1
              [] Source 1
              [] Source 2
              [] Source 3
              [] Source 4
         - Channel 2
              [] Source 1
              [] Source 2
              [] Source 3
              [] Source 4
         - Channel 3
              [] Source 1
              [] Source 2
              [] Source 3
              [] Source 4
    +Board 2
    +Board 3

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Multiple Selection with a Tree View

    my best suggestion (maybe someone else would have a better one) would be to make the top level nodes like board1 and channel 1 already checked. if the user unchecks them, you recheck them via code, so it looks like they are not able to be changed.

    other than that I am not sure what else you might want to do other than seperating this into several listbox controls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width