RadzenDropZoneContainer<TItem> Class

RadzenDropZoneContainer component.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenComponentWithChildren

RadzenDropZoneContainer<TItem>

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenDropZoneContainer<TItem> : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender

Type Parameters

Name Description
TItem

Constructors

RadzenDropZoneContainer<TItem>link

RadzenDropZoneContainer component.

Declaration
public RadzenDropZoneContainer<TItem>()

Properties

CanDroplink

Gets or sets the function that checks if the item can be dropped in specific zone or item.

Declaration
public Func<RadzenDropZoneItemEventArgs<TItem>, bool> CanDrop { get; set; }
Property Value
Type Description
Func<RadzenDropZoneItemEventArgs<TItem>, bool>Gets or sets the function that checks if the item can be dropped in specific zone or item.

Datalink

Gets or sets the data.

Declaration
public IEnumerable<TItem> Data { get; set; }
Property Value
Type Description
IEnumerable<TItem>Gets or sets the data.

DragEndlink

The event callback raised when an item drag ends.

Declaration
public EventCallback<RadzenDropZoneItemEventArgs<TItem>> DragEnd { get; set; }
Property Value
Type Description
EventCallback<RadzenDropZoneItemEventArgs<TItem>>The event callback raised when an item drag ends.

DragStartlink

The event callback raised when an item drag starts.

Declaration
public EventCallback<RadzenDropZoneItemEventArgs<TItem>> DragStart { get; set; }
Property Value
Type Description
EventCallback<RadzenDropZoneItemEventArgs<TItem>>The event callback raised when an item drag starts.

Droplink

The event callback raised on item drop.

Declaration
public EventCallback<RadzenDropZoneItemEventArgs<TItem>> Drop { get; set; }
Property Value
Type Description
EventCallback<RadzenDropZoneItemEventArgs<TItem>>The event callback raised on item drop.

ItemRenderlink

Gets or sets the row render callback. Use it to set row attributes.

Declaration
public Action<RadzenDropZoneItemRenderEventArgs<TItem>> ItemRender { get; set; }
Property Value
Type Description
Action<RadzenDropZoneItemRenderEventArgs<TItem>>Gets or sets the row render callback. Use it to set row attributes.

ItemSelectorlink

Gets or sets the selector function for zone items.

Declaration
public Func<TItem, RadzenDropZone<TItem>, bool> ItemSelector { get; set; }
Property Value
Type Description
Func<TItem, RadzenDropZone<TItem>, bool>Gets or sets the selector function for zone items.

Templatelink

Gets or sets the template for zone items.

Declaration
public RenderFragment<TItem> Template { get; set; }
Property Value
Type Description
RenderFragment<TItem>Gets or sets the template for zone items.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string
An error has occurred. This app may no longer respond until reloaded. Reload 🗙