Hi I was able to implement a select all items in the dropdownlist. But when I use the filter, on index 0 the it would not select the item. Also whenever I select the option “Select All”, it should not display the item “Select All”. It should just show the rest of the items
I Use filter and typedown “Shelley”, the dropdownlist filters down to the result but when I try to select. It is not selecting the item.
here is my jsfiddle:
Ok I was able to fix it. Now I select the option “Select All”, it should not display the item “Select All”. It should just show the rest of the items
Can I understand, you resolved the issue?
If you need additional help feel free to contact us.
No i still want to solve this issue:
When I select the option “Select All”, it should not display the item “Select All”. It should just show the rest of the items
Hi thanks Hristo, I think i wrote the explaination incorrectly, Whenever I select “Select All” the dropdown will show in text as “Select All” and the the rest of the items in the dropdown will be checked. Also maintaining the threestatecheckbox.
If in the dropdown i checked the “Select All”, and When I deselect any items from the dropdown it will show the remaining items that were checked like Affogato, Americano, Bicerin, etc.
Here is your jsfiddle
- This reply was modified 6 years, 8 months ago by dan123.
This is expected behavior. If you uncheck an item, this item is not showed on the DropDownList label anymore.
Could you give us more details what you want to achieve?
Basically when I select “Select All” it will show that in the value in the dropdown and all other items will be checked.
I figured it out
I am encountering the same. Do we have a fix on this on the later builds? Thank you!
The issue is when we filter, then we tick the first entry of the filtered item, it will not be in checked state but it’s in an indeterminate state. I suspect, that it is because it is performing the function of the ‘Select All’ since ‘Select All’ is also located the first entry of items. Since they the the same visibleIndex = 0.
- This reply was modified 1 year, 11 months ago by msoriano.
Please have a look at the updated fiddle, based on the one shared above: https://jsfiddle.net/qy1mw0ck/2/
You will see that after filtering, the first entry can be checked.
If you have any other questions, please do not hesitate to contact us again.
You must be logged in to reply to this topic.