RadzenPickList ValueProperty added

This commit is contained in:
Vladimir Enchev
2026-01-08 09:22:07 +02:00
parent 6c0e39da20
commit f1c3f46ad7
2 changed files with 9 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
}
<RadzenListBox @ref=sourceListBox @bind-Value=@selectedSourceItems Data="@source" Multiple="@Multiple" @bind-SearchText=@sourceSearchText
FilterAsYouType=true FilterCaseSensitivity=FilterCaseSensitivity.CaseInsensitive
TextProperty="@TextProperty" DisabledProperty="@DisabledProperty" AllowFiltering=@AllowFiltering ItemRender="@OnSourceItemRender"
TextProperty="@TextProperty" ValueProperty="@ValueProperty" DisabledProperty="@DisabledProperty" AllowFiltering=@AllowFiltering ItemRender="@OnSourceItemRender"
Template=@ListBoxTemplate Placeholder="@(SourcePlaceholder ?? Placeholder)" SelectAllText="@SelectAllText" AllowSelectAll="@AllowSelectAll"
Disabled=@(Disabled || Source == null || (Source != null && !Source.Any()))
/>
@@ -35,7 +35,7 @@
}
<RadzenListBox @ref=targetListBox @bind-Value=@selectedTargetItems Data="@target" Multiple="@Multiple" @bind-SearchText=@targetSearchText
FilterAsYouType=true FilterCaseSensitivity=FilterCaseSensitivity.CaseInsensitive
TextProperty="@TextProperty" DisabledProperty="@DisabledProperty" AllowFiltering=@AllowFiltering ItemRender="@OnTargetItemRender"
TextProperty="@TextProperty" ValueProperty="@ValueProperty" DisabledProperty="@DisabledProperty" AllowFiltering=@AllowFiltering ItemRender="@OnTargetItemRender"
Template=@ListBoxTemplate Placeholder="@(TargetPlaceholder ?? Placeholder)" SelectAllText="@SelectAllText" AllowSelectAll="@AllowSelectAll"
Disabled=@(Disabled || Target == null|| (Target != null && !Target.Any()))
/>

View File

@@ -106,6 +106,13 @@ namespace Radzen.Blazor
[Parameter]
public string? TextProperty { get; set; }
/// <summary>
/// Gets or sets the value property
/// </summary>
/// <value>The value property.</value>
[Parameter]
public string? ValueProperty { get; set; }
/// <summary>
/// Gets or sets the disabled property
/// </summary>