Class RadzenDropDownDataGrid<TValue>
RadzenDropDownDataGrid component.
Inheritance
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenDropDownDataGrid<TValue> : DropDownBase<TValue>, IDisposable, IRadzenFormComponent
Type Parameters
Name | Description |
---|---|
TValue | The type of the t value. |
Examples
<RadzenDropDownDataGrid @bind-Value=@customerID TValue="string" Data=@customers TextProperty="CompanyName" ValueProperty="CustomerID" Change=@(args => Console.WriteLine($"Selected CustomerID: {args}")) />
Fields
popup
Gets popup element reference.
Declaration
protected ElementReference popup
Field Value
Type | Description |
---|---|
ElementReference |
Properties
Add
Gets or sets the action to be executed when the Add button is clicked.
Declaration
public EventCallback<MouseEventArgs> Add { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<MouseEventArgs> |
AddAriaLabel
Gets or sets the add button aria-label attribute.
Declaration
public string AddAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AllowColumnResize
Gets or sets a value indicating whether column resizing is allowed.
Declaration
public bool AllowColumnResize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
AllowFiltering
Gets or sets a value indicating whether filtering is allowed.
Declaration
public override bool AllowFiltering { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
AllowFilteringByAllStringColumns
Gets or sets a value indicating whether filtering by all string columns is allowed.
Declaration
public bool AllowFilteringByAllStringColumns { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
AllowFilteringByWord
Gets or sets a value indicating whether filtering by each entered word in the search term, sperated by a space, is allowed.
Declaration
public bool AllowFilteringByWord { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
AllowRowSelectOnRowClick
Gets or sets a value indicating whether DataGrid row can be selected on row click.
Declaration
public bool AllowRowSelectOnRowClick { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
AllowSorting
Gets or sets a value indicating whether sorting is allowed.
Declaration
public bool AllowSorting { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
CellRender
Gets or sets the cell render callback. Use it to set cell attributes.
Declaration
public Action<DataGridCellRenderEventArgs<object>> CellRender { get; set; }
Property Value
Type | Description |
---|---|
Action<DataGridCellRenderEventArgs<System.Object>> | The cell render callback. |
Chips
Gets or sets a value indicating whether the selected items will be displayed as chips. Set to false
by default.
Requires Multiple to be set to true
.
Declaration
public bool Chips { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Columns
Gets or sets the columns.
Declaration
public RenderFragment Columns { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The columns. |
ColumnWidth
Gets or sets the width of all columns.
Declaration
public string ColumnWidth { get; set; }
Property Value
Type | Description |
---|---|
System.String | The width of all columns. |
DataGrid
Handles the reference to the DataGrid component.
Declaration
public RadzenDataGrid<object> DataGrid { get; }
Property Value
Type | Description |
---|---|
RadzenDataGrid<System.Object> |
Density
Gets or sets a value indicating DataGrid density.
Declaration
public Density Density { get; set; }
Property Value
Type | Description |
---|---|
Density |
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.
Declaration
public string EmptyText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The empty text. |
FirstPageAriaLabel
Gets or sets the pager's first page button's aria-label attribute.
Declaration
public string FirstPageAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FirstPageTitle
Gets or sets the pager's first page button's title attribute.
Declaration
public string FirstPageTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FocusFilterOnPopup
Gets or sets whether popup automatically focuses on filter input.
Declaration
public bool FocusFilterOnPopup { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
FooterTemplate
Gets or sets the footer template.
Declaration
public RenderFragment FooterTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The footer template. |
InputAttributes
Specifies additional custom attributes that will be rendered by the input.
Declaration
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<System.String, System.Object> | The attributes. |
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 |
|
Items
Gets the items.
Declaration
protected override IEnumerable<object> Items { get; }
Property Value
Type | Description |
---|---|
IEnumerable<System.Object> | The items. |
Overrides
LastPageAriaLabel
Gets or sets the pager's last page button's aria-label attribute.
Declaration
public string LastPageAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LastPageTitle
Gets or sets the pager's last page button's title attribute.
Declaration
public string LastPageTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MaxSelectedLabels
Gets or sets the number of maximum selected labels.
Declaration
public int MaxSelectedLabels { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The maximum selected labels. |
NextPageAriaLabel
Gets or sets the pager's next page button's aria-label attribute.
Declaration
public string NextPageAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NextPageTitle
Gets or sets the pager's next page button's title attribute.
Declaration
public string NextPageTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OpenOnFocus
Gets or sets a value indicating whether popup should open on focus. Set to false
by default.
Declaration
public bool OpenOnFocus { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PageAriaLabelFormat
Gets or sets the pager's numeric page number buttons' aria-label attributes.
Declaration
public string PageAriaLabelFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PageNumbersCount
Gets or sets the page numbers count.
Declaration
public int PageNumbersCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The page numbers count. |
PagerAlwaysVisible
Gets or sets a value indicating whether pager is visible even when not enough data for paging.
Declaration
public bool PagerAlwaysVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PagerHorizontalAlign
Gets or sets the horizontal align.
Declaration
public HorizontalAlign PagerHorizontalAlign { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlign | The horizontal align. |
PageTitleFormat
Gets or sets the pager's numeric page number buttons' title attributes.
Declaration
public string PageTitleFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PagingSummaryFormat
Gets or sets the pager summary format.
Declaration
public string PagingSummaryFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The pager summary format. |
PreserveRowSelectionOnPaging
Gets or sets preserving the selected row index on pageing.
Declaration
public bool PreserveRowSelectionOnPaging { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Row selection preservation on pageing. |
PrevPageAriaLabel
Gets or sets the pager's previous page button's aria-label attribute.
Declaration
public string PrevPageAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrevPageTitle
Gets or sets the pager's previous page button's title attribute.
Declaration
public string PrevPageTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Responsive
Gets or sets a value indicating whether this RadzenDropDownDataGrid<TValue> is responsive.
Declaration
public bool Responsive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
RowRender
Gets or sets the row render callback. Use it to set row attributes.
Declaration
public Action<RowRenderEventArgs<object>> RowRender { get; set; }
Property Value
Type | Description |
---|---|
Action<RowRenderEventArgs<System.Object>> | The row render callback. |
SearchTextPlaceholder
Gets or sets the search input placeholder text.
Declaration
public string SearchTextPlaceholder { get; set; }
Property Value
Type | Description |
---|---|
System.String | The search input placeholder text. |
SelectedItemsText
Gets or sets the selected items text.
Declaration
public string SelectedItemsText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The selected items text. |
SelectedValue
Gets or sets the selected value.
Declaration
public object SelectedValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The selected value. |
ShowAdd
Gets or sets a value indicating whether the create button is shown.
Declaration
public bool ShowAdd { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowPagingSummary
Gets or sets the pager summary visibility.
Declaration
public bool ShowPagingSummary { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The pager summary visibility. |
ShowSearch
Gets or sets a value indicating whether search button is shown.
Declaration
public bool ShowSearch { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ValueTemplate
Gets or sets the value template.
Declaration
public RenderFragment<dynamic> ValueTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<System.Object> | The value template. |
View
Gets the view. The data with sorting, filtering and paging applied.
Declaration
public IEnumerable View { get; }
Property Value
Type | Description |
---|---|
IEnumerable | The view. |
Methods
Dispose()
Disposes this instance.
Declaration
public override void Dispose()
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
HandleKeyPress(KeyboardEventArgs, Boolean, Nullable<Boolean>)
Declaration
protected override async Task HandleKeyPress(KeyboardEventArgs args, bool isFilter, bool? shouldSelectOnChange = null)
Parameters
Type | Name | Description |
---|---|---|
KeyboardEventArgs | args | |
System.Boolean | isFilter | |
System.Nullable<System.Boolean> | shouldSelectOnChange |
Returns
Type | Description |
---|---|
Task |
OnAddClick(MouseEventArgs)
Handles the Click event.
Declaration
public async Task OnAddClick(MouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | args | The |
Returns
Type | Description |
---|---|
Task |
OnAfterRenderAsync(Boolean)
Called when [after render asynchronous].
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender | if set to |
Returns
Type | Description |
---|---|
Task | Task. |
Overrides
OnCellRender(DataGridCellRenderEventArgs<Object>)
Executes CellRender callback.
Declaration
protected virtual void OnCellRender(DataGridCellRenderEventArgs<object> args)
Parameters
Type | Name | Description |
---|---|---|
DataGridCellRenderEventArgs<System.Object> | args |
OnDataChanged()
Called when data is changed.
Declaration
protected override async Task OnDataChanged()
Returns
Type | Description |
---|---|
Task |
Overrides
OnFilter(ChangeEventArgs)
Handles the Filter event.
Declaration
protected override async Task OnFilter(ChangeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ChangeEventArgs | args | The |
Returns
Type | Description |
---|---|
Task |
Overrides
OnRowRender(RowRenderEventArgs<Object>)
Executes RowRender callback.
Declaration
protected virtual void OnRowRender(RowRenderEventArgs<object> args)
Parameters
Type | Name | Description |
---|---|---|
RowRenderEventArgs<System.Object> | args |
OpenPopup(String, Boolean, Boolean)
Opens the popup.
Declaration
protected override async System.Threading.Tasks.Task OpenPopup(string key = "ArrowDown", bool isFilter = false, bool isFromClick = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.Boolean | isFilter | if set to |
System.Boolean | isFromClick | if set to |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Reload()
Reloads this instance.
Declaration
public async Task Reload()
Returns
Type | Description |
---|---|
Task |
Reset()
Resets component and deselects row
Declaration
public async Task Reset()
Returns
Type | Description |
---|---|
Task |
SelectItemFromValue(Object)
Selects the item from value.
Declaration
protected override void SelectItemFromValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Overrides
SetParametersAsync(ParameterView)
Set parameters as an asynchronous operation.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |