RadzenPickList component.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenPickList<TItem> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender| Name | Description |
|---|---|
| TItem |
Gets or sets value if filtering is allowed.
public bool AllowFiltering { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets value if filtering is allowed. |
Gets or sets a value indicating whether it is allowed to move all items.
public bool AllowMoveAll { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether it is allowed to move all items. |
Gets or sets a value indicating whether it is allowed to move all items from source to target.
public bool AllowMoveAllSourceToTarget { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether it is allowed to move all items from source to target. |
Gets or sets a value indicating whether it is allowed to move all items from target to source.
public bool AllowMoveAllTargetToSource { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether it is allowed to move all items from target to source. |
Gets or sets a value indicating whether selecting all items is allowed.
public bool AllowSelectAll { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether selecting all items is allowed. |
Gets or sets a value indicating whether virtualization is enabled for the source and target listboxes.
public bool AllowVirtualization { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether virtualization is enabled for the source and target listboxes. |
Gets or sets the buttons spacing
public string ButtonGap { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the buttons spacing |
Gets or sets the buttons style
public JustifyContent ButtonJustifyContent { get; set; }
| Type | Description |
|---|---|
| JustifyContent | Gets or sets the buttons style |
Gets or sets the color shade of the buttons.
public Shade ButtonShade { get; set; }
| Type | Description |
|---|---|
| Shade | Gets or sets the color shade of the buttons. |
Gets or sets the buttons size.
public ButtonSize ButtonSize { get; set; }
| Type | Description |
|---|---|
| ButtonSize | Gets or sets the buttons size. |
Gets or sets the buttons style
public ButtonStyle ButtonStyle { get; set; }
| Type | Description |
|---|---|
| ButtonStyle | Gets or sets the buttons style |
Gets or sets the design variant of the buttons.
public Variant ButtonVariant { get; set; }
| Type | Description |
|---|---|
| Variant | Gets or sets the design variant of the buttons. |
Gets or sets a value indicating whether component is disabled.
public bool Disabled { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether component is disabled. |
Gets or sets the disabled property
public string DisabledProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the disabled property |
Gets or sets the edit context.
public Forms.EditContext EditContext { get; set; }
| Type | Description |
|---|---|
| Forms.EditContext | Gets or sets the edit context. |
Gets or sets the empty template shown when a list has no items.
public RenderFragment EmptyTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the empty template shown when a list has no items. |
Gets or sets the empty text shown when a list has no items.
public string EmptyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the empty text shown when a list has no items. |
Gets or sets the row render callback. Use it to set row attributes.
public Action<PickListItemRenderEventArgs<TItem>> ItemRender { get; set; }
| Type | Description |
|---|---|
| Action<PickListItemRenderEventArgs<TItem>> | Gets or sets the row render callback. Use it to set row attributes. |
Gets or sets the callback that is invoked when items are moved between the source and target collections. Fires after SourceChanged and TargetChanged, so the bound collections already reflect the move.
public EventCallback<PickListMoveEventArgs<TItem>> Move { get; set; }
| Type | Description |
|---|---|
| EventCallback<PickListMoveEventArgs<TItem>> | Gets or sets the callback that is invoked when items are moved between the source and target collections. Fires after SourceChanged and TargetChanged, so the bound collections already reflect the move. |
Gets or sets a value indicating whether to move all or only avaialable after filter items.
public bool MoveFilteredItemsOnlyOnMoveAll { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether to move all or only avaialable after filter items. |
Gets or sets a value indicating whether multiple selection is allowed.
public bool Multiple { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether multiple selection is allowed. |
Gets or sets the orientation
public Orientation Orientation { get; set; }
| Type | Description |
|---|---|
| Orientation | Gets or sets the orientation |
Gets or sets the common placeholder
public string Placeholder { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the common placeholder |
Gets or sets the select all text.
public string SelectAllText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the select all text. |
Gets or sets the callback that is invoked when the selected source items change.
public EventCallback<IEnumerable<TItem>> SelectedSourceChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<IEnumerable<TItem>> | Gets or sets the callback that is invoked when the selected source items change. |
Gets or sets the selected source to target icon
public string SelectedSourceToTargetIcon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the selected source to target icon |
Gets or sets the selected source to target title
public string SelectedSourceToTargetTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the selected source to target title |
Gets or sets the callback that is invoked when the selected target items change.
public EventCallback<IEnumerable<TItem>> SelectedTargetChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<IEnumerable<TItem>> | Gets or sets the callback that is invoked when the selected target items change. |
Gets or sets the selected target to source icon
public string SelectedTargetToSourceIcon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the selected target to source icon |
Gets or sets the selected target to source title
public string SelectedTargetToSourceTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the selected target to source title |
Gets or sets value if headers are shown.
public bool ShowHeader { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets value if headers are shown. |
Gets or sets the source collection.
public IEnumerable<TItem> Source { get; set; }
| Type | Description |
|---|---|
| IEnumerable<TItem> | Gets or sets the source collection. |
Gets or sets the source changed.
public EventCallback<IEnumerable<TItem>> SourceChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<IEnumerable<TItem>> | Gets or sets the source changed. |
Gets or sets the empty template shown when the source list has no items. Overrides EmptyTemplate.
public RenderFragment SourceEmptyTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the empty template shown when the source list has no items. Overrides EmptyTemplate. |
Gets or sets the empty text shown when the source list has no items. Overrides EmptyText.
public string SourceEmptyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the empty text shown when the source list has no items. Overrides EmptyText. |
Gets or sets the source expression used to create the FieldIdentifier for source validation.
public Expressions.Expression<Func<IEnumerable<TItem>>> SourceExpression { get; set; }
| Type | Description |
|---|---|
| Expressions.Expression<Func<IEnumerable<TItem>>> | Gets or sets the source expression used to create the FieldIdentifier for source validation. |
Gets or sets the source header
public RenderFragment SourceHeader { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the source header |
Gets or sets the source placeholder
public string SourcePlaceholder { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the source placeholder |
Gets or sets the source to target icon
public string SourceToTargetIcon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the source to target icon |
Gets or sets the source to target title
public string SourceToTargetTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the source to target title |
Gets or sets the target collection.
public IEnumerable<TItem> Target { get; set; }
| Type | Description |
|---|---|
| IEnumerable<TItem> | Gets or sets the target collection. |
Gets or sets the target changed.
public EventCallback<IEnumerable<TItem>> TargetChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<IEnumerable<TItem>> | Gets or sets the target changed. |
Gets or sets the empty template shown when the target list has no items. Overrides EmptyTemplate.
public RenderFragment TargetEmptyTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the empty template shown when the target list has no items. Overrides EmptyTemplate. |
Gets or sets the empty text shown when the target list has no items. Overrides EmptyText.
public string TargetEmptyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the empty text shown when the target list has no items. Overrides EmptyText. |
Gets or sets the target expression used to create the FieldIdentifier for target validation.
public Expressions.Expression<Func<IEnumerable<TItem>>> TargetExpression { get; set; }
| Type | Description |
|---|---|
| Expressions.Expression<Func<IEnumerable<TItem>>> | Gets or sets the target expression used to create the FieldIdentifier for target validation. |
Gets or sets the target header
public RenderFragment TargetHeader { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the target header |
Gets or sets the target placeholder
public string TargetPlaceholder { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the target placeholder |
Gets or sets the target to source icon
public string TargetToSourceIcon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the target to source icon |
Gets or sets the target to source title
public string TargetToSourceTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the target to source title |
Gets or sets the source template
public RenderFragment<TItem> Template { get; set; }
| Type | Description |
|---|---|
| RenderFragment<TItem> | Gets or sets the source template |
Gets or sets the text property
public string TextProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the text property |
Gets or sets the value property
public string ValueProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the value property |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Returns a collection of TItem that are selected in the source list.
public IEnumerable<TItem> GetSelectedSources()
| Type | Description |
|---|---|
| IEnumerable<TItem> |
Returns a collection of TItem that are selected in the target list.
public IEnumerable<TItem> GetSelectedTargets()
| Type | Description |
|---|---|
| IEnumerable<TItem> |
Gets the final CSS style rendered by the component. Combines it with a style custom attribute.
protected string GetStyle()
| Type | Description |
|---|---|
| string |
Set parameters as an asynchronous operation.
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters | The parameters. |
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |