New to Telerik UI for BlazorStart a free 30-day trial

A component that lets you define an external drop target for drag-and-drop operations (e.g., Upload). Supports customizable hint and note texts, renders drop-zone styling and hover state, and integrates with components that accept dropped files.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TelerikDropZone : DropZoneBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDropZoneBaseTelerikDropZone

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members DropZoneBase.OnAfterRenderAsync(bool)DropZoneBase.Dispose()DropZoneBase.IdDropZoneBase.EnabledDropZoneBase.MultipleDropZoneBase.TemplateDropZoneBase.HeightDropZoneBase.WidthDropZoneBase.DragOverClassBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikDropZone()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

Properties

The text for the hint of the drop zone. If not provided, a default value will be rendered.

C#
[Parameter]
public string HintText { get; set; }

The text for the note of the drop zone. If not provided, no note will be rendered.

C#
[Parameter]
public string NoteText { get; set; }