-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IgxCombo with single selection #9832
Comments
@Timmeeeey IgxAutocomplete should have all available items with scroll. If you don't see a scroll, can you send me a sample because what you are describing should be a bug that needs to be fixed? Here are IgxAutocomplete samples. Reading your case I think IgxAutocomplete should be what you need. Here is a detailed answer about differences between IgxCombo, IgxDropDown, IgxCombo and IgxAutocomplete. |
I have an array of objects like |
I agree on this one. The onSelectionChange solution in the docs is ok, but a more true single selection would be better. |
@Timmeeeey with the last details you have provided it seems that igxAutocomplete is not applicable for your case, because it is more an addition to the input, where you can have suggested items, but at the end, you can type anything. The autocomplete uses IgxDropDown which is declarative, which is different from the combo where it is data bound-able and you have value and text keys. @Timmeeeey, @Eralmidia, as you both pointed out, our demo is our current solution that is using the @Timmeeeey, igxSelect can also be a solution for your case. Even though you don't have filtering, when select is on focus you will be able to search an item, just by start typing. You will not be able to see what you are typing, but the list will scroll to the matched time anyway. Check this demo - start typing "Potato" or type "p" several times to see how you will be navigated through the matched items. |
@Lipata I really like to have a real filter like in IgxCombo, so IgxSelect doesn't fit. |
@Timmeeeey @Lipata I'm OK with adding a single selection mode in the combo, if that doesn't also require a template change (removal of the checkboxes). I really want to avoid |
@kdinev That would be great! The checkboxes are ok for me. I just want to be able to use an object as model instead of an array. |
@Lipata Can you guys look at potentially implementing this next sprint, if it's possible? |
Hi @Timmeeeey , the feature request is added to the next sprint planning. We would try to include it in the next major release - 12.1.0, expected to be released in the beginning of August. |
@Timmeeeey @Eralmidia @Timmeeeey Please check out this StackBlitz and let me know if this approach could resolve your scenario. |
Unfortunately I use reactive forms with |
@Timmeeeey @Eralmidia As mentioned above, allowing the combo to be bindable to a single instance (instead of an array of instances) would require complex refactoring (and, inevitably, introducing breaking changes to the API) - we have decided the scope of that is too great and will not be going forward with it, for the time being. That said, thank you for the feedback and the valid concerns you've voiced - we will consider this refactoring for a future iteration. |
There has been no recent activity and this issue has been marked inactive. |
@Eralmidia It's not. We were demoed a fully functional component last Friday, so we should be able to push it out very soon. @Lipata I suggest we include this component in |
@Eralmidia, @kdinev we will include it in 12.2.x. Here is the spec. |
@kdinev Any chance we're getting it this week? 🙏 We actually have 3 feature branches simply waiting for this one in order to start the pull request 😉 |
@Eralmidia We will discuss it at our sync meeting today and we will post an update in the issue this afternoon. |
@Eralmidia what we can do is to release 12.3.0-alpha.0 (which will be 12.2.3 + simple combo) by the end of the week so that you can test it. We still have work to do and if everything is ok we plan to release 12.3.0 next week. |
@Lipata Sounds good, looking forward to testing it 👍 |
@Lipata Quick question: Should the alphas be available through npm, or do you need to download them manually or something like that? I believe I tried accessing an alpha version earlier, and that I couldnt get that to work through simply updating the package in the package.json. |
|
@Eralmidia we've just released 12.3.0-alpha.0, so you can try with |
Thanks, @Lipata We'll check it out tomorrow 👍 |
WIP: scrolling to selected item introduce a lot of flickering
WIP: scrolling to selected item introduce a lot of flickering
WIP: scrolling to selected item introduce a lot of flickering
WIP: scrolling to selected item introduce a lot of flickering
Question
I have a potentially large list and I need a dropdown component with the ability to filter/search.
The IgxAutocomplete doesn't have the ability to scroll through all available values.
The IgxCombo would be perfect but it forces multi selection.
This behavior can be changed with
onSelectionChange
like described in the documentation but the value of the component is still an array.Are there any plans to add a singleSelection mode where the value is not an array but a single object?
I think a single selection dropdown with filter is a quite common use case.
The text was updated successfully, but these errors were encountered: