Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    How to keep all childnodes of the clicked parent

    I have a javascript for a tree view but i need to change it according to the requirement. Lets start with example with the treeview as follow:

    1 Door phone
    1.1 Ready Kits
    1.1.1 Audioset
    1.1.2 Videoset
    1.2 Audio Kits
    1.2.1 Elphone
    1.2.2 Video Door phone
    2 CCTV
    2.1 Camera
    2.1.1 Dome Camera
    2.1.2 IP Camera
    2.2 Others

    Now the thing is in the current treeview a single category is open at a time. like if 1.1.1 is open 1.1.2 will b closed and similarly if 1.1 is open...1.2 will b closed. But i want that when i click on 1(Door phone) ie Door phone...evry node should be opened instead of just one similary when i click on 2(CCTV), all its node should be opened.

    I hope it will be possible to achieve this and i would be helped. I can also provide with the javascript if required.

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,133
    Thanks
    12
    Thanked 332 Times in 328 Posts
    Quote Originally Posted by mihirpatel83 View Post
    I can also provide with the javascript if required.
    it would be impossible to help without that.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


  •  

    Posting Permissions

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