Evaluating bids

Wpf Telerik - Custom Filtering Controls for Radgridview

Published on the July 11, 2024 in IT & Programming

About this project

Open

Hi, I need help with the design and how to implement a telerik custom filter. I am having trouble implementing it for this case.

Currently I have a RadGridView, which shows a list of orders. One of the columns shows a list of icons:

public required List<IMvvmViewModel?> DesignStatusViewModels { get; set; }

Column:


<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn
IsReadOnly="True"
HeaderCellStyle="{StaticResource DesignStatusCellStyle}"
DataMemberBinding="{Binding DesignStatusViewModels}"
IsFilterable="True">
<telerik:GridViewDataColumn.Header>
<TextBlock
Text="Design Status"
MinWidth="100"
Width="Auto"
TextAlignment="Center">
</TextBlock>
</telerik:GridViewDataColumn.Header>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
...
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

Each IMvvmViewModel has a bool, and a template, the template is responsible for showing the activated or not activated icon for each case, for example:

[DesignStatusTemplates(Template = typeof(DesignStatusRushOrderTemplate))]
publicpartialclassDesignStatusRushOrderViewModel : IMvvmViewModel
{
publicbool IsRush { get; set;}
}

[DesignStatusTemplates(Template = typeof(DesignStatusExternalOrderTemplate))]
public partial class DesignStatusExternalOrderViewModel : IMvvmViewModel
{
publicbool IsExternal { get; set;}
}

What I need is to make a custom filter for this column, something like that:

<telerik:GridViewDataColumn.FilteringControl>
<ds:DesignStatusFilterControl />
</telerik:GridViewDataColumn.FilteringControl>

which can filter with a checkbox or whatever is easier, for example all orders that have DesignStatusRushOrderViewModel -> IsRush == true or DesignStatusExternalOrderViewModel -> IsExternal  == true

Thanks! Juan

Category IT & Programming
Subcategory Other
Project size Small
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed

Delivery term: July 15, 2024

Skills needed