Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question Question about this project Triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants