Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Checked & unChecked event for tree view using javascript

Checked & unChecked event for tree view using javascript

Scheduled Pinned Locked Moved C#
javascriptdata-structures
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anithagaraga
    wrote on last edited by
    #1

    Hi, if we check the parent node of the treeview then all the child node should be checked & also when we uncheck the parent node then it should uncheck the child node.code for web Application.

    M K P 3 Replies Last reply
    0
    • A anithagaraga

      Hi, if we check the parent node of the treeview then all the child node should be checked & also when we uncheck the parent node then it should uncheck the child node.code for web Application.

      M Offline
      M Offline
      Mbah Dhaim
      wrote on last edited by
      #2

      string data = GetYourQuestion();
      if (!CheckQuestionIsRelatedInThisForum(data)){
      throw new WrongForumException("GET OUT OF HERE...");
      }

      dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support

      1 Reply Last reply
      0
      • A anithagaraga

        Hi, if we check the parent node of the treeview then all the child node should be checked & also when we uncheck the parent node then it should uncheck the child node.code for web Application.

        K Offline
        K Offline
        kirri0037
        wrote on last edited by
        #3

        function checkAll(field) { for (i = 0; i < field.length; i++) field[i].checked = true ; } function uncheckAll(field) { for (i = 0; i < field.length; i++) field[i].checked = false ; } HTML Part <input type="button" name="CheckAll" value="Check All" onclick="checkAll(document.myform.list)"> <input type="button" name="UnCheckAll" value="Uncheck All" onclick="uncheckAll(document.myform.list)">

        1 Reply Last reply
        0
        • A anithagaraga

          Hi, if we check the parent node of the treeview then all the child node should be checked & also when we uncheck the parent node then it should uncheck the child node.code for web Application.

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Wrong forum. Do not post a javascript question in the C# forum :|

          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups