Select theme:

Material 3

PickList (Angular)link

PickList component properties and events.

PickList Propertieslink

NameTypeDefaultDescription
Namestring'picklist' + index suffixUnique name of the PickList.
SourcearraynullPickList source array.
TargetarraynullPickList target array.
SourceHeaderstringnullPickList source header text.
TargetHeaderstringnullPickList target header text.
SourceFilterPlaceholderstringnullPickList source filter placeholder.
TargetFilterPlaceholderstringnullPickList target filter placeholder.
filterBystringnullPickList filter by property name.
showSourceFilterbooleantrueIs source list filter allowed.
showTargetFilterbooleantrueIs target list filter allowed.
dragdropbooleanfalseIs drag drop allowed.
showSourceControlsbooleantrueIs source list controls visible.
showTargetControlsbooleantrueIs target list controls visible.
Visibleboolean/expressiontrueIs PickList visible.
Disabledboolean/expressiontrueIs PickList disabled.
defaultItemTextstringTemplate for indexPickList default item text when no template.
TemplatestringnullPickList template.

image

PickList Eventslink

NameTypeDefaultDescription
moveToTargeteventnullRaised when item(s) moved to target.
moveToSourceeventnullRaised when item(s) moved to source.
moveAllToTargeteventnullRaised when all items moved to target.
moveAllToSourceeventnullRaised when all items moved to source.
sourceReordereventnullRaised on source items reorder.
targetReordereventnullRaised on target items reorder.
sourceSelecteventnullRaised on source items selected.
targetSelecteventnullRaised on target items selected.

image

Customizing the PickList templatelink

By default the PickList component displays the index of the current row as template. Use the Template property to customize the appearance. The whole data item is available as data in the expression.

Template example:

  • <strong>${data?.FirstName}</strong> - display the FirstName property in a <strong></strong> element.
  • Full Name: ${data?.FirstName} ${data?.LastName} - display two data item properties in the row.

Angular declarationlink

<rz-picklist #picklist0 defaultItemText="Template for index" filterBy="ProductName" [source]="getProductsResult" [target]="targetProducts">
  <ng-template let-data picklistTemplate>
  {{data?.ProductName}}
  </ng-template>
</rz-picklist>

image

Step by steplink

Source Code

1. Create new application with .NET server-side project and add new MSSQL data-source connected to Northwind database.

2. Start Create New Page wizard and select Empty Page template. image image

3. Drop PickList component and bind it to Categories table. image image image

4. Create new array Page property selectedCategories in Page Load event and use it for PickList Target. image image

5. Use CategoryName for PickList Template and FitlerBy. image

6. Define PickList SourceHeader, TargetHeader, SourceFilterPlaceHolder and TargetFilterPlaceHolder. image

3. Run the application and pick categories. image

© 2016-2025 Radzen Ltd. All Rights Reserved.
Designed and developed with ❤️ in Radzen Blazor Studio.

Select theme:

Material 3