473,383 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to Check All ChildNodes when ParentNode is Checked

Hi,
was just wondering how I could set the ParentNode checked value to all its
childNodes (and their childnodes... etc)

Thks for help.
Nov 16 '05 #1
2 6231
Pierre,

If you mean in a tree view, you would have to cycle through all of the
child nodes and select the nodes that were children (of any kind, children
of children, etc, etc).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pierre" <sa****@libertysurf.fr> wrote in message
news:41***********************@news.free.fr...
Hi,
was just wondering how I could set the ParentNode checked value to all its
childNodes (and their childnodes... etc)

Thks for help.

Nov 16 '05 #2
thks ^^

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> a écrit
dans le message de news:eJ**************@TK2MSFTNGP10.phx.gbl...
Pierre,

If you mean in a tree view, you would have to cycle through all of the
child nodes and select the nodes that were children (of any kind, children
of children, etc, etc).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pierre" <sa****@libertysurf.fr> wrote in message
news:41***********************@news.free.fr...
Hi,
was just wondering how I could set the ParentNode checked value to all its childNodes (and their childnodes... etc)

Thks for help.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: adam | last post by:
i'm working on a portion of a CMS that allows content-admins to browse a product list, and add individual products into the taxonomy by clicking checkboxes next to categories they might belong in....
1
by: ason | last post by:
Hi, I just tried to replace a single XmlNode with several ChildNodes. When doing this with the following code i found out that if you get the ChildNodes with 'ChildNodes' - property the nodes...
1
by: chris yoker via DotNetMonster.com | last post by:
hiya, I have a function that replaces the nodenames in an xmlFile. I use a while loop.The problem is, if the element has no childNodes, then it isn't replaced.I want ALL the elements to be...
0
by: dolberg | last post by:
Hi, I have a Treeview containing groups and groupmembers and I would like to have the childnodes (groupmembers) checked when checking a parent node (a group). This is no problem using the...
2
by: chuck | last post by:
Hi, I am modifying some code from here http://www.quirksmode.org/dom/domform.html I have a div 'readroot' that I clone. I change the change the id and name of the childnodes of 'readroot' to...
1
by: Ryo | last post by:
Hello !!! I have a treeview with checkbox to select element. The problem is that i can't found how to automatically select the childnodes the checked node. Someone know how to do that ? Thanks.
1
by: yawnmoth | last post by:
Given an element ID, is there a way to figure out what index one would need to use in the parentNode's childNodes array to get at that element? For example... <body> <div id="parent"> <div...
1
by: howard15 | last post by:
Hi, I'm having a problem with Javascript reading childnodes. For some weird reason, javascript will not read the childnodes correctly if I have the form fields in separate <td> tags. Anyone...
1
Frinavale
by: Frinavale | last post by:
I'm working on an ASP.NET application using VB.NET for server side code. I have a GridView listing a bunch of stuff. Above the GridView I have a checkbox named "ChkBx_SelectAll". If this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.