Class RadzenDataList<TItem>
RadzenDataList component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
[CascadingTypeParameter("TItem")]
public class RadzenDataList<TItem> : PagedDataBoundComponent<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
Name | Description |
---|---|
TItem | The type of the item. |
Examples
<RadzenDataList @data=@orders TItem="Order" AllowPaging="true" WrapItems="true">
<Template>
@context.OrderId
</Template>
</RadzenDataList>
Constructors
RadzenDataList()
RadzenDataList component.
Declaration
public RadzenDataList()
Examples
<RadzenDataList @data=@orders TItem="Order" AllowPaging="true" WrapItems="true">
<Template>
@context.OrderId
</Template>
</RadzenDataList>
Properties
AllowVirtualization
Gets or sets a value indicating whether this instance is virtualized.
Declaration
[Parameter]
public bool AllowVirtualization { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
EmptyTemplate
Gets or sets the empty template shown when Data is empty collection.
Declaration
[Parameter]
public RenderFragment EmptyTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The empty template. |
EmptyText
Gets or sets the empty text shown when Data is empty collection.
Declaration
[Parameter]
public string EmptyText { get; set; }
Property Value
Type | Description |
---|---|
string | The empty text. |
IsLoading
Gets or sets a value indicating whether this instance loading indicator is shown.
Declaration
[Parameter]
public bool IsLoading { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
ShowEmptyMessage
Gets or sets a value indicating whether DataList should show empty message.
Declaration
[Parameter]
public bool ShowEmptyMessage { get; set; }
Property Value
Type | Description |
---|---|
bool |
Virtualize
Gets Virtualize component reference.
Declaration
public Virtualize<TItem> Virtualize { get; }
Property Value
Type | Description |
---|---|
Virtualize<TItem> |
WrapItems
Gets or sets a value indicating whether to wrap items.
Declaration
[Parameter]
public bool WrapItems { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenDataList component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |
Overrides
Reload()
Reloads this instance.
Declaration
public override Task Reload()
Returns
Type | Description |
---|---|
Task |