Skip to content
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] Is there a way to programmatically select multiple items? #276

Open
schorges opened this issue May 30, 2022 · 1 comment
Open
Labels
Question Question about this project Triage Issue needs to be triaged

Comments

@schorges
Copy link

I search for a Solution to programmatically select multiple items with an parameter eg. in AfterRender.

Change the IList not work

<BlazoredTypeahead SearchMethod="SearchEvents"
                         @bind-Values="SelectedPeople"                            
                         EnableDropDown="true"
                         placeholder="Suche Mail oder Name...">
                         
                         <SelectedTemplate Context="EmailsUsers">
                            📧 @EmailsUsers.emailAdd
                         </SelectedTemplate>
                         <HelpTemplate>
                             Mindestens 2 Zeichen zur Suche eingeben.
                         </HelpTemplate>
                         <ResultTemplate Context="EmailsUsers">
                            <div style="font-weight: 300;"> 📧 @EmailsUsers.emailAdd</div>
                            <div style="font-size: xx-small;">@EmailsUsers.name </div>
                         </ResultTemplate>
                     </BlazoredTypeahead>
@schorges schorges added Question Question about this project Triage Issue needs to be triaged labels May 30, 2022
@Clive321A
Copy link

I do this with TypeAhead, by maintaining a separate List that's added to in the "ValueChanged" event, I then render these items below the TypeAhead as the selected items, with a option to remove from the list

So ends up looking like this

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Question about this project Triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants