How to allow multiselection on blazor server app ?

Ahmed Salah Abed Elaziz 390 Reputation points
2023-05-10T08:10:24.9666667+00:00

I work on blazor server app . i need any control select2 or another allow to me to make multi selection as example

suppose i have server drop down and this server can have multi database so

server 1 will have multi selection on database list as Database1,Database2

so Please How to make that

I don't need to use

select multiple true

input multiple true

because it is difficult for user to click shift or ctrl for more items selection

so Please How to make that please

can you show me sample for that please and what is best choice control for that ?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,559 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,481 Reputation points
    2023-05-10T15:37:57.6933333+00:00

    JavaScript components like select2 do not work with blazor. You need a blazor component. Try

    https://blazor.radzen.com/dropdown-multiple

    1 person found this answer helpful.
    0 comments No comments

  2. AgaveJoe 28,056 Reputation points
    2023-05-10T12:57:27.5733333+00:00

    If I understand correctly, the problem you're trying to solve is selecting items. Rather than a select display a list of checkboxes.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.