# RadzenDropDown: how to load data with multiple selected items?

**URL:** <https://forum.radzen.com/t/radzendropdown-how-to-load-data-with-multiple-selected-items/5038>\
**Category:** Blazor Server\
**Created:** [September 19, 2020, 11:45pm UTC](https://forum.radzen.com/t/radzendropdown-how-to-load-data-with-multiple-selected-items/5038 "2020-09-19T23:45:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShishirDahal](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@ShishirDahal](https://forum.radzen.com/u/ShishirDahal)\
**Post date:** [September 19, 2020, 11:45pm UTC](https://forum.radzen.com/t/radzendropdown-how-to-load-data-with-multiple-selected-items/5038/1 "2020-09-19T23:45:13Z")

</div>

I have RadzenDropDown whose data comes from other components or DB and need to load pre-selected items, I could not find a way to do that. For example below, "allExpressions" comes from other control where few items are already pre-selected.

List allExp = "a","b","c","d" but "b" and "c" should be checked when loaded in.

\<RadzenDropDown  
AllowFiltering="true"  
FilterOperator="StringFilterOperator.Contains"  
FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"  
Multiple="true"  
Data="@allExpressions"  
TValue="IEnumerable"  
@bind-Value="expressionNameList"  
TextProperty="Name"  
ValueProperty="Name"  
Change="@(args =\> OnChangeExpression(args))" /\>

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [September 20, 2020, 7:29am UTC](https://forum.radzen.com/t/radzendropdown-how-to-load-data-with-multiple-selected-items/5038/2 "2020-09-20T07:29:26Z")

</div>

Hi @ShishirDahal,

You can refer to the [DropDown demo](https://blazor.radzen.com/dropdown). The one which has multiple selection enabled shows how to select multiple values.

```auto
 <RadzenDropDown @bind-Value="multipleValues" 
     Multiple="true" 
     Data="@customers" 
     TextProperty="CompanyName" 
     ValueProperty="CustomerID"
/>
@code {
   IEnumerable<string> multipleValues = new string[] { "ALFKI", "ANATR" };
}

```

---

<div class="post-metadata">

**Author:** ![nmaroko](https://forum.radzen.com/letter_avatar_proxy/v4/letter/n/6bbea6/32.png) [@nmaroko](https://forum.radzen.com/u/nmaroko)\
**Post date:** [August 17, 2022, 9:44pm UTC](https://forum.radzen.com/t/radzendropdown-how-to-load-data-with-multiple-selected-items/5038/3 "2022-08-17T21:44:18Z")

</div>

What if you were to have a List of variables that you want to load into the drop down? For example a List of integers.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 18, 2022, 4:31am UTC](https://forum.radzen.com/t/radzendropdown-how-to-load-data-with-multiple-selected-items/5038/4 "2022-08-18T04:31:50Z")

</div>

The last DropDown from the example has the same configuration:

```auto
 <RadzenDropDown AllowClear="true" AllowFiltering="true" Multiple="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" Data=@products 
@bind-Value=@multipleValuesdisabled TextProperty="ProductName" 
ValueProperty="ProductID" DisabledProperty="Discontinued" Change=@(args => OnChangeDisabled(args, "DropDown with multiple selection")) Class="w-100" />

@code {    
   IEnumerable<int> multipleValuesdisabled = new int[] { 1,2 };
}

```
