Class RadzenDataList<TItem>
RadzenDataList component.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenDataList<TItem> : PagedDataBoundComponent<TItem>, 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>
Properties
AllowVirtualization
Gets or sets a value indicating whether this instance is virtualized.
Declaration
public bool AllowVirtualization { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EmptyTemplate
Gets or sets the empty template shown when Data is empty collection.
Declaration
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
public string EmptyText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The empty text. |
IsLoading
Gets or sets a value indicating whether this instance loading indicator is shown.
Declaration
public bool IsLoading { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowEmptyMessage
Gets or sets a value indicating whether DataList should show empty message.
Declaration
public bool ShowEmptyMessage { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Virtualize
Gets Virtualize component reference.
Declaration
public Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize<TItem> Virtualize { get; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize<TItem> |
WrapItems
Gets or sets a value indicating whether to wrap items.
Declaration
public bool WrapItems { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
Reload()
Reloads this instance.
Declaration
public override async Task Reload()
Returns
Type | Description |
---|---|
Task |