-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
[QUESTION] How to set a default value using server look up #311
Comments
Does this help you? |
No! It didn't help me. |
Add an invisible option for the selected value:
Or push value to filteredCustomers:
|
@boscharnau is this resolved? |
@Knoxvillekm @macjohnny adding the invisible option solves it, but causes a different issue with ctrl+a. instead of deselecting all (after selecting all) it selects all again. |
we can solve the issue partially, by only showing options that are not in the filtered results stackblitz
it's still an issue when you deselect all (ctrl+a), it will also deselect the options that aren't included in the filtered results. |
ok, was able to solve it, by only showing the options if search ctrl is empty stackblitz
also need to remove my question is, if this is the right way to fix, or do we have a better solution? |
closing this one as it is rather a question than an issue |
Hi,
I want to set the initial value on the input. I have tried multiple things, but no matter what I do, I can't set the initial value to the input.
Let me explain my application. I have an Object Project, which has assigned a Customer. So, if I am editing an existing Project the input has to show it's customer name.
I am not able to
setValue()
to the input if we gotcustomerIdProject
. How I can achieve that?Input it should show the name of its customer assigned.
If I create a new project, the input hasn't any initial value.
That's my code:
I want to simulate a lazy loading, and the fetch has to be done on the server, not on the front because I can have thousonds of customers and the performance will be so horrible.
Example if filter is 'john': It will return all the customers that each name contains the word 'john'.
Thanks.
The text was updated successfully, but these errors were encountered: