---
layout: post
title: Templates in Blazor MultiSelect Dropdown Component | Syncfusion
description: Checkout and learn here all about Templates in Syncfusion Blazor MultiSelect Dropdown component and more.
platform: Blazor
control: MultiSelect Dropdown
documentation: ug
---
# Templates in Blazor MultiSelect Dropdown Component
The MultiSelect has been provided with several options to customize each list item, group title, selected value, header, and footer elements.
## Item template
The content of each list item within the MultiSelect can be customized with the help of [ItemTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfDropDownBase-1.html#Syncfusion_Blazor_DropDowns_SfDropDownBase_1_ItemTemplate) property.
In the following sample, each list item is split into two columns to display relevant data.
```cshtml
@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor
@((context as EmployeeData).FirstName)@((context as EmployeeData).Country)
@code {
public class EmployeeData
{
public string FirstName { get; set; }
public string Country { get; set; }
}
public Query Query = new Query();
}
```
The output will be as follows.
![Blazor MultiSelect DropDown with Item Template](./images/blazor-multiselect-dropdown-item-template.png)
## Value template
The currently selected value that is displayed by default on the MultiSelect input element can be customized using the [ValueTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMultiSelect-1.html#Syncfusion_Blazor_DropDowns_SfMultiSelect_1_ValueTemplate) property.
In the following sample, the selected value is displayed as a combined text of both `FirstName` and `Designation` in the MultiSelect input, which is separated by a hyphen.
```cshtml
@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor
@((context as EmployeeData).FirstName)@((context as EmployeeData).Designation)
@((context as EmployeeData).FirstName) - @((context as EmployeeData).Designation)
@code {
public class EmployeeData
{
public string FirstName { get; set; }
public string Designation { get; set; }
}
public Query Query = new Query();
}
```
The output will be as follows.
![Blazor MultiSelect DropDown with Value Template](./images/blazor-multiselect-dropdown-value-template.png)
## Header template
The header element is shown statically at the top of the popup list items within the MultiSelect, and any custom element can be placed as a header element using the [HeaderTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMultiSelect-1.html#Syncfusion_Blazor_DropDowns_SfMultiSelect_1_HeaderTemplate) property.
In the following sample, the list items and its headers are designed and displayed as two columns similar to multiple columns of the grid.
```cshtml
@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor
@((context as EmployeeData).FirstName)@((context as EmployeeData).Country)
NameCountry
@code {
public class EmployeeData
{
public string FirstName { get; set; }
public string Country { get; set; }
}
public Query Query = new Query();
}
```
The output will be as follows.
![Blazor MultiSelect DropDown with Header Template](./images/blazor-multiselect-dropdown-header-template.png)
## Footer template
The MultiSelect has options to show a footer element at the bottom of the list items in the popup list. Here, you can place any custom element as a footer element using the [FooterTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMultiSelect-1.html#Syncfusion_Blazor_DropDowns_SfMultiSelect_1_FooterTemplate) property.
In the following sample, footer element displays the total number of list items present in the MultiSelect.
```cshtml
@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor
@code {
public class EmployeeData
{
public string FirstName { get; set; }
}
public Query Query = new Query();
}
```
The output will be as follows.
![Blazor MultiSelect DropDown with Footer Template](./images/blazor-multiselect-dropdown-footer-template.png)
## No records template
The MultiSelect is provided with support to custom design the popup list content when no data is found and no matches found on search with the help of [NoRecordsTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfDropDownBase-1.html#Syncfusion_Blazor_DropDowns_SfDropDownBase_1_NoRecordsTemplate) property.
In the following sample, popup list content displays the notification of no data available.
```cshtml
@using Syncfusion.Blazor.DropDowns
NO DATA AVAILABLE
@code {
public class EmployeeData { }
List employee = new List { };
}
```
The output will be as follows.
![Blazor MultiSelect DropDown without Data](./images/blazor-multiselect-dropdown-without-data.png)
## Action failure template
There is also an option to custom design the popup list content when the data fetch request fails at the remote server. This can be achieved using the [ActionFailureTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfDropDownBase-1.html#Syncfusion_Blazor_DropDowns_SfDropDownBase_1_ActionFailureTemplate) property.
In the following sample, when the data fetch request fails, the MultiSelect displays the notification.
```cshtml
@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor
Data fetch get fails
@code {
public class EmployeeData
{
public string FirstName { get; set; }
}
public Query Query = new Query();
}
```
The output will be as follows.
![Blazor MultiSelect DropDown with Action Template](./images/blazor-multiselect-dropdown-action-template.png)