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 to this section

RadzenDropZoneContainer component.

Declaration
public RadzenDropZoneContainer<TItem>()

Properties

CanDropLink to this section

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 to this section

Gets or sets the data.

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

DragEndLink to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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

GetComponentCssClassLink to this section

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