与Treeview控件有关的疑问

与Treeview控件有关的疑问

问题描述:

大家好

我正在使用树视图控件将数据库中的值与复选框绑定.
父节点大约有三个孩子.

Hi all

I am using a tree-view control to bind the values from database with check box.
Nearly three child are there for parent node.like

Parent1 
  child1
    child2
      child3
Parent2
   child1
     child2
        child3


我可以绑定来自3个表的数据,它们都工作正常.我想要一种设施,当父节点检查其所有对应的子节点时会自动对其进行检查.如果我单击父节点1,则对子123进行检查.如果我检查child1,child2和child3会得到检查.如果我检查child 2,则会检查所有child3项目.该怎么做?

在此先感谢
Amrutha


I can able to bind data''s which is from 3 tables all are working fine.I want a facility when a parent node checks all its corresponding child automatically get checked.If i click on parent 1 ,child 123 get checked .if i check child1,child2 and child3 get checked.If I check child 2 all child3 items get checked. How to do that?

Thanks in Advance
Amrutha


在这里,您可以找到有关您所要求的内容的文章:
CP:使用TreeView中的复选框 [ ^ ]
CP:简单三态TreeView [ CP:带有复选框的jQuery树 [ [
Hi,
Here you can find an article on what you asked:
CP : Working with Checkboxes in the TreeView[^]
CP : Simple Tri-State TreeView[^]
CP : jQuery Tree with Checkboxes[^]

These all articles are related to your query.
Try this[^] also.

--Amit