Back to Devexpress

FilterRadioListItem Class

maui-devexpress-dot-maui-dot-editors-db972288.md

latest5.6 KB
Original Source

FilterRadioListItem Class

A filter item that allows users to select a single option from a radio-button list.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
[DXLicenseMAUI]
public class FilterRadioListItem :
    FilterListItemBase

Remarks

The image below shows a sample filter item with a radio-button list. Users can enter a search query in the search box to filter available options:

To use a FilterRadioListItem in your filtering UI, bind its Context property to the data control’s FilteringContext (DataGridView.FilteringContext or DXCollectionView.FilteringContext). Then specify the FilterRadioListItem’s FieldName property to set by which data source property values the data control should filter its items:

xaml
<ContentPage ...
             xmlns:dxe="clr-namespace:DevExpress.Maui.Editors;assembly=DevExpress.Maui.Editors">
             <!--...-->
                 <dxe:FilterRadioListItem Context="{Binding}" FieldName="Status"/>
             <!--...-->
</ContentPage>
csharp
FilterPage FilterPage => filterPage ??= new FilterPage() { BindingContext = dataControl.FilteringContext };

The FilterRadioListItem shows its list of options in the same page. As an alternative, use the FilterRadioListItem item to show a radio-button list of available options in a separate page.

To show radio buttons for items, set the ShowRadioButtons property to true.

You can also replace the default editor with a custom editor. To do so, specify the FilterRadioListItem’s FilterModelTemplate property. Use the FilterRadioListItem’s FilterModel property to obtain the binding context for the template.

For more information on how to implement a Filtering UI for DataGridView and DXCollectionView, refer to the following sections:

Implements

Show 17 items

INotifyPropertyChanged

IAnimatable

Microsoft.Maui.Controls.ITabStopElement

IViewController

IVisualElementController

IElementController

IGestureController

IGestureRecognizers

IPropertyMapperView

IHotReloadableView

IView

IReplaceableView

ILayout

ILayoutController

Microsoft.Maui.IFrameworkElement

ITransform

IContainer

Inheritance

Show 11 items

System.Object BindableObject Element NavigableElement VisualElement View Layout DevExpress.Maui.Editors.Internal.FilterItemBaseCore FilterItemBase FilterListItemBase FilterRadioListItem

Extension Methods

Yield<FilterRadioListItem>()

YieldIfNotNull<FilterRadioListItem>()

See Also

FilterRadioListItem Members

DevExpress.Maui.Editors Namespace