ASP.NET MVC Interface Controls - Checkbox - Linked CheckBoxes with Tri-States


Technologies
 
 
.NET Framework
 
 
 
ASP.NET
 
 
 
 
ASP.NET
 
 
 
 
ASP.NET MVC
 
 
 
 
ASP.NET Dynamic Data
 
 
 
C#
 
 
 
VB
 
 
Other
 
 
 
PHP
 
 
 
Ruby
 
 
 
Java



Use the ParentCheckBoxID property to link child check boxes to their parent check boxes.
When a parent check box has checked and unchecked child check boxes, it will be partially checked.
C#
 
    Html.Obout(new OboutCheckBox("ChkAspNet"))
    Html.Obout(new OboutCheckBox("ChkAspNetMvc") {ParentCheckBoxID = "ChkAspNet" })