Analisando propostas

Wpf Telerik - Custom Filtering Controls for Radgridview

Publicado em 11 de Julho de 2024 dias na TI e Programação

Sobre este projeto

Aberto

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

Categoria TI e Programação
Subcategoria Outros
Tamanho do projeto Pequeño
Isso é um projeto ou uma posição de trabalho? Um projeto
Tenho, atualmente Eu tenho especificações
Disponibilidade requerida Conforme necessário

Prazo de Entrega: 15 de Julho de 2024

Habilidades necessárias