Hi everyone,
I've been testing the new features of the Telerik Grid and i've encountered a behavior that i can't quite understand.
My Custom Filter Row is applied but to the previous column as it shows in the attached screenshot.
Here is the entire code of my Grid :
<
TelerikGrid
Data
=
"@listDemandes"
PageSize
=
"10"
Pageable
=
"true"
Sortable
=
"true"
Groupable
=
"false"
Reorderable
=
"false"
Resizable
=
"true"
FilterMode
=
"Telerik.Blazor.GridFilterMode.FilterRow"
OnUpdate
=
"@UpdateHandler"
OnEdit
=
"@EditHandler"
OnDelete
=
"@DeleteHandler"
OnCreate
=
"@CreateHandler"
>
<
DetailTemplate
Context
=
"ctxDemande"
>
@{
var demande = ctxDemande as WillyDemande;
<
TelerikGrid
Data
=
"demande.WillyMachines"
Pageable
=
"false"
>
<
DetailTemplate
Context
=
"ctxMachine"
>
@{
var machine = ctxMachine as WillyMachine;
<
TelerikGrid
Data
=
"machine.WillyResults"
Pageable
=
"false"
>
<
GridColumns
>
<
GridColumn
Field=@nameof(WillyResult.Type)
Title
=
"Type"
Filterable
=
"true"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyResult.Description)
Title
=
"Description"
Filterable
=
"true"
Editable
=
"false"
/>
</
GridColumns
>
</
TelerikGrid
>
}
</
DetailTemplate
>
<
GridColumns
>
<
GridColumn
Field=@nameof(WillyMachine.DocumentType)
Title
=
"Type"
Filterable
=
"true"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyMachine.Statut)
Title
=
"Statut"
Filterable
=
"true"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyMachine.DateDebut)
Title
=
"Debut"
Filterable
=
"true"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyMachine.DateFin)
Title
=
"Fin"
Filterable
=
"true"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyMachine.Performance)
Title
=
"Performance"
Filterable
=
"true"
Editable
=
"false"
/>
</
GridColumns
>
</
TelerikGrid
>
}
</
DetailTemplate
>
<
GridColumns
>
<
GridColumn
Field=@nameof(WillyDemande.DessinCommande)
Title
=
"Commande"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.DessinCommande"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.Username)
Title
=
"Usager"
Editable
=
"false"
>
<
FilterCellTemplate
>
@*<
TelerikComboBox
Data
=
"@CurrentUsernames"
Value
=
"@UserName"
Filterable
=
"true"
ValueChanged="@(async (string val) =>
{
UserName = val;
var filter = context.FilterDescriptor.FilterDescriptors[0] as FilterDescriptor;
filter.Value = UserName;
if (string.IsNullOrEmpty(UserName))
{
await context.ClearFilterAsync();
}
else
{
await context.FilterAsync();
}
})">
</
TelerikComboBox
>*@
</
FilterCellTemplate
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.SendingComputer)
Title
=
"Poste"
Editable
=
"false"
>
<
FilterCellTemplate
>
<
TelerikComboBox
Data
=
"@CurrentSendingComputers"
Value
=
"@SendingComputer"
Filterable
=
"true"
ValueChanged="@(async (string val) =>
{
SendingComputer = val;
var filter = context.FilterDescriptor.FilterDescriptors[0] as FilterDescriptor;
filter.Value = SendingComputer;
if (string.IsNullOrEmpty(SendingComputer))
{
await context.ClearFilterAsync();
}
else
{
await context.FilterAsync();
}
})">
</
TelerikComboBox
>
</
FilterCellTemplate
>
</
GridColumn
>
<
GridColumn
Field
=
"IdPartNavigation.Name"
Title
=
"Configuration"
Editable
=
"false"
/>
<
GridColumn
Field
=
"IdPartNavigation.Revision"
Title
=
"Révision"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.Eco)
Title
=
"ECO"
Editable
=
"false"
>
<
FilterCellTemplate
>
<
TelerikComboBox
Data
=
"@CurrentECOs"
Value
=
"@ECO"
Filterable
=
"true"
ValueChanged="@(async (string val) =>
{
ECO = val;
var filter = context.FilterDescriptor.FilterDescriptors[0] as FilterDescriptor;
filter.Value = ECO;
if (string.IsNullOrEmpty(ECO))
{
await context.ClearFilterAsync();
}
else
{
await context.FilterAsync();
}
})">
</
TelerikComboBox
>
</
FilterCellTemplate
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.ProjectName)
Title
=
"Projet"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.WilmaRbre)
Title
=
"RBRE"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.WilmaRbre"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.WilmaRbtk)
Title
=
"RBTK"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.WilmaRbtk"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.WilmaTls)
Title
=
"RBLK"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.WilmaTls"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.WilmaTq)
Title
=
"TQUE"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.WilmaTq"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.WilmaTc)
Title
=
"TCON"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.WilmaTc"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.PdfOnly)
Title
=
"PDF Only"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.PdfOnly"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.DateProduite)
Title
=
"Produite"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.Priority)
Title
=
"Priorité"
Editable
=
"false"
>
<
FilterCellTemplate
>
<
TelerikComboBox
Data
=
"@CurrentPriorities"
Value
=
"@Priority"
Filterable
=
"true"
ValueChanged="@(async (string val) =>
{
Priority = val;
var filter = context.FilterDescriptor.FilterDescriptors[0] as FilterDescriptor;
filter.Value = Priority;
if (string.IsNullOrEmpty(Priority))
{
await context.ClearFilterAsync();
}
else
{
await context.FilterAsync();
}
})">
</
TelerikComboBox
>
</
FilterCellTemplate
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.Statut)
Title
=
"Statut"
Editable
=
"false"
>
<
FilterCellTemplate
>
<
TelerikComboBox
Data
=
"@CurrentStatuts"
Value
=
"@Statut"
Filterable
=
"true"
ValueChanged="@(async (string val) =>
{
Statut = val;
var filter = context.FilterDescriptor.FilterDescriptors[0] as FilterDescriptor;
filter.Value = Statut;
if (string.IsNullOrEmpty(Statut))
{
await context.ClearFilterAsync();
}
else
{
await context.FilterAsync();
}
})">
</
TelerikComboBox
>
</
FilterCellTemplate
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.StatutSyteline)
Title
=
"Importé"
Editable
=
"false"
>
<
Template
>
@{
var ctx = context as WillyDemande;
<
input
type
=
"checkbox"
disabled @
bind
=
"ctx.StatutSyteline"
/>
}
</
Template
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.DateSyteline)
Title
=
"Importation"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.ServerName)
Title
=
"Serveur"
Editable
=
"false"
>
<
FilterCellTemplate
>
<
TelerikComboBox
Data
=
"@CurrentServerNames"
Value
=
"@ServerName"
Filterable
=
"true"
ValueChanged="@(async (string val) =>
{
ServerName = val;
var filter = context.FilterDescriptor.FilterDescriptors[0] as FilterDescriptor;
filter.Value = ServerName;
if (string.IsNullOrEmpty(ServerName))
{
await context.ClearFilterAsync();
}
else
{
await context.FilterAsync();
}
})">
</
TelerikComboBox
>
</
FilterCellTemplate
>
</
GridColumn
>
<
GridColumn
Field=@nameof(WillyDemande.DateDebut)
Title
=
"Début"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.DateFin)
Title
=
"Fin"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.Performance)
Title
=
"Performance"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.PathModel)
Title
=
"Emplacement"
Editable
=
"false"
/>
<
GridColumn
Field=@nameof(WillyDemande.MailAddress)
Title
=
"Courriel"
Editable
=
"false"
/>
<
GridCommandColumn
>
<
GridCommandButton
Command
=
"Save"
Icon
=
"save"
ShowInEdit
=
"true"
>Mettre à jour</
GridCommandButton
>
<
GridCommandButton
Command
=
"Delete"
Icon
=
"delete"
>Supprimer</
GridCommandButton
>
<
GridCommandButton
Command
=
"Cancel"
Icon
=
"cancel"
ShowInEdit
=
"true"
>Cancel</
GridCommandButton
>
</
GridCommandColumn
>
</
GridColumns
>
</
TelerikGrid
>