This topic contains 3 replies, has 2 voices, and was last updated by Hristo 9 years, 1 month ago.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › General Discussions › Lists › ListBox › Listbox Select All using jqxbutton (Not embed in the list itself)
Tagged: javascript listbox, jQuery ListBox, jqwidgets listbox, ListBox
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 9 years, 1 month ago.
Hi i created a listbox and I already created a checkbox for “Select All” above the listbox, the problem is that I can select all and unselect all. But I am trying to achieve the three state logic on this. I got it almost complete its something to do with the check state that I setup.
Here is my jsfiddle:
http://jsfiddle.net/RsV5g/637/
Hello dan123,
It is a customization and you should choose the logic of the concrete case.
Could you clarify the issue? I only see that you do not change to ‘check’ the jqxCheckBox when all items are checked. (and it still stay indeterminate)
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
Basically for some reason when I click “Select All”, it display the indeterminate which I don’t want that. I want it to be ‘checked’. Not sure what I am doing wrong on the logic.
Here is my jsfiddle:
http://jsfiddle.net/RsV5g/649/
Hello dan123,
This seems it is not issued with the Widget.
You set a lot of customizations there, I would suggest you add more if states and to check the states that you set.
Another option is to use jqxListBox with and to use “indeterminateItem” method in the desired case.
Also, about your case, you could try check when all items in the ListBox are checked and the CheckBox is in ‘indeterminate’ state change its ‘jqx-checkbox-check-indeterminate’ class to ‘jqx-checkbox-check-checked’ class.
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
You must be logged in to reply to this topic.