Class RadzenDataFilterProperty<TItem>
RadzenDataFilterProperty component. Must be placed inside a RadzenDataFilter<TItem>
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenDataFilterProperty<TItem> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
Name | Description |
---|---|
TItem | The type of the DataFilter item. |
Constructors
RadzenDataFilterProperty()
RadzenDataFilterProperty component. Must be placed inside a RadzenDataFilter<TItem>
Declaration
public RadzenDataFilterProperty()
Properties
DataFilter
Gets or sets the DataFilter.
Declaration
[CascadingParameter]
public RadzenDataFilter<TItem> DataFilter { get; set; }
Property Value
Type | Description |
---|---|
RadzenDataFilter<TItem> | The DataFilter. |
FilterOperator
Gets or sets the filter operator.
Declaration
[Parameter]
public FilterOperator FilterOperator { get; set; }
Property Value
Type | Description |
---|---|
FilterOperator | The filter operator. |
FilterOperators
Gets or sets the filter operators.
Declaration
[Parameter]
public IEnumerable<FilterOperator> FilterOperators { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<FilterOperator> | The filter operators. |
FilterProperty
Gets or sets the filter property name.
Declaration
[Parameter]
public string FilterProperty { get; set; }
Property Value
Type | Description |
---|---|
string | The filter property name. |
FilterPropertyType
Gets the filter property type.
Declaration
public Type FilterPropertyType { get; }
Property Value
Type | Description |
---|---|
Type |
FilterTemplate
Gets or sets the filter template.
Declaration
[Parameter]
public RenderFragment<CompositeFilterDescriptor> FilterTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<CompositeFilterDescriptor> | The filter template. |
FilterValue
Gets or sets the filter value.
Declaration
[Parameter]
public object FilterValue { get; set; }
Property Value
Type | Description |
---|---|
object | The filter value. |
FormatString
Gets or sets the format string.
Declaration
[Parameter]
public string FormatString { get; set; }
Property Value
Type | Description |
---|---|
string | The format string. |
IsSelected
Gets or sets a value indicating whether this property is selected in the filter.
Declaration
[Parameter]
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Property
Gets or sets the property name.
Declaration
[Parameter]
public string Property { get; set; }
Property Value
Type | Description |
---|---|
string | The property name. |
Title
Gets or sets the title.
Declaration
[Parameter]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string | The title. |
Type
Gets or sets the data type.
Declaration
[Parameter]
public Type Type { get; set; }
Property Value
Type | Description |
---|---|
Type | The data type. |
Visible
Gets or sets a value indicating whether this RadzenDataGridColumn<TItem> is visible.
Declaration
[Parameter]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Methods
ClearFilters()
Sets to default property filter values and operators.
Declaration
public void ClearFilters()
Dispose()
Disposes this instance.
Declaration
public void Dispose()
GetFilterOperator()
Get property filter operator.
Declaration
public FilterOperator GetFilterOperator()
Returns
Type | Description |
---|---|
FilterOperator |
GetFilterOperators()
Get possible property filter operators.
Declaration
public virtual IEnumerable<FilterOperator> GetFilterOperators()
Returns
Type | Description |
---|---|
IEnumerable<FilterOperator> |
GetFilterProperty()
Gets the filter property.
Declaration
public string GetFilterProperty()
Returns
Type | Description |
---|---|
string | System.String. |
GetFilterValue()
Get property filter value.
Declaration
public object GetFilterValue()
Returns
Type | Description |
---|---|
object |
GetVisible()
Gets if the property is visible or not.
Declaration
public bool GetVisible()
Returns
Type | Description |
---|---|
bool | System.Boolean. |
OnInitialized()
Called when initialized.
Declaration
protected override void OnInitialized()
Overrides
SetFilterOperator(FilterOperator?)
Set property filter operator.
Declaration
public void SetFilterOperator(FilterOperator? value)
Parameters
Type | Name | Description |
---|---|---|
FilterOperator? | value |
SetFilterValue(object)
Set property filter value.
Declaration
public void SetFilterValue(object value)
Parameters
Type | Name | Description |
---|---|---|
object | value |
SetParametersAsync(ParameterView)
Set parameters as an asynchronous operation.
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |