Questions tagged [nested-checkboxes]

20 questions
5
votes
1 answer

Chakra-UI React Select All/Some Checkboxes

I am trying to add more checkboxes to the example in Chakra-UI's "Indeterminate" checkbox example in their docs: https://chakra-ui.com/docs/form/checkbox I can't seem to add more than two checkboxes and still keep the functionality to toggle all…
Jon
  • 622
  • 8
  • 29
5
votes
2 answers

Zend Framework Nested Checkboxes

I would like to create a Zend_Form with nested checkboxes. I'm sure that it's possible, but I don't remember how to do it. This is what it would look like: [x] Top level checkbox 1 [ ] Sub level 1 [x] Sub level 2 [ ] Top level 2 [ ] Sub…
Andrew
  • 227,796
  • 193
  • 515
  • 708
3
votes
1 answer

asp.net list of grouped (nested) checkboxes

I want to create List of Grouped Checkboxes as follows: []Group1 [] Item1 [] Item2 []Group2 []Item1 []Item2 []Item3 Here Group# and item# are checkboxes. Does anyone know how to do this in asp.net. I am getting data from DataSet. One…
activebiz
  • 6,000
  • 9
  • 41
  • 64
1
vote
4 answers

Create nested checkboxes in asp.net 2.0

Whats is the best method to create nested checkboxlists in ASP.net? Should I be using a datagrid? Should I be using a treeview with checkboxes enabled? I have the data I need in a datatable, and would like to loop through through it to create a…
Webdevbytes
  • 35
  • 1
  • 7
1
vote
1 answer

How to make sure at least 1 checkbox is checked with jQuery Validate

I have a group of checkboxes that each have their own name, so they are not a checkbox group. I need a custom method for jQuery Validate that will make sure 1 or more is checked. Also, typically you tie a validation method to a field, but this…
Chad Crowell
  • 601
  • 6
  • 16
1
vote
0 answers

Select,Unselect,Intermediate Checkbox treeview in *ngFor

As I mentioned above code i want category is my parent and when I'm select category checkbox it will select all it's child checkbox(items) .And when I select particular one child then category checkbox is intermediate. Same for the child and…
Rushi Patel
  • 561
  • 4
  • 14
0
votes
0 answers

How to save grouped multiple checkboxes into database in asp.net core

how can I save values of checkboxes for each user as against the many checked boxes
0
votes
1 answer

How i render checkboxes with nested array of objects

I have a checkbox component which renders multiple day checkboxes. I need to print the values of the selected checkboxes. The sample given below looks like the one: const [state, setState] = useState({ "firstName": "", "lastName" : "", …
Disha Singh
  • 27
  • 1
  • 2
  • 7
0
votes
1 answer

How do I check and display if multiple checkboxes are checked within a group box in vb.net

For Each ctl As Windows.Forms.Control In Me.Controls If TypeOf ctl Is System.Windows.Forms.CheckBox Then Dim ck As System.Windows.Forms.CheckBox = ctl If ck.Checked Then intcheckboxesChecked += 1 …
Ahmed
  • 3
  • 1
0
votes
1 answer

Disable all other top level checkboxes when one parent checkbox is selected

How do you disable the top-level parent checkboxes when one top level checkbox has been checked? Basically, I want the top level checkboxes to behave like radio buttons and the children to behave like normal checkboxes. I can not swap out the…
scottrod
  • 477
  • 1
  • 8
  • 21
0
votes
0 answers

Problem setting indeterminate value of parent checkbox in group

I have a JSON file with hierarchical data: [ { "id": 0, "label": "Gap Inc.", "value": "Gap Inc", "checked": false, "children": [ { "id": 0, "label": "Banana Republic", "value": "Banana Republic", …
Steve
  • 14,401
  • 35
  • 125
  • 230
0
votes
2 answers

RAILS How can I build a nested form to change a has_many through associated object boolean attribute using checkboxes?

I have 3 Models: User, Profile and Photo. Profile < ApplicationRecord belongs_to :user has_many :photos, through: :user Photo < ApplicationRecord belongs to :user User < ApplicationRecord has_one :profile has_many :photos I'd like to build a…
0
votes
0 answers

bootstrap nested checkboxes

The following is js code for nested checkboxes I use it to my Laravel project it select parent when I check the child and select all children when checking the parent. can anyone please help me how to apply this js code but remove the select all of…
0
votes
3 answers

Checking all check box does not work on a created function

function toggleTree(layergroupID) { $("#LayerUL" + layergroupID).slideToggle(function() { if ($(this).is(':hidden')) { $("#layerCollaspe" + layergroupID).addClass("glyphicon-plus"); $("#layerCollaspe" +…
gray
  • 103
  • 2
  • 4
  • 20
0
votes
1 answer

Checking and unchecking checkboxes with dynamic ids and class using jquery

I have a grid that has grouping i.e the grid shows products of group. So, the structure has Group and its childs. Same way I will have some other groups and their childs which I am binding like below.I want to check and uncheck the entire sublist on…
Sweetie
  • 1,298
  • 6
  • 24
  • 48
1
2