Hi, I have a problem about sorting a column, I'm using the same code as in the demo, just with a different country in CultureInfo, basically sorting has no effect
<RadzenDataGrid AllowFiltering="true" AllowPaging="true" AllowSorting="true" Data="@esitiDett" TItem="Esiti" ColumnWidth="50px" @ref="grid" AllowColumnResize="true">
<Columns>
<RadzenDataGridColumn TItem="Esiti" Property="CodCg" Title="Cod. Cg" />
<RadzenDataGridColumn TItem="Esiti" Property="CodAge" Title="Cod. Ag." />
<RadzenDataGridColumn TItem="Esiti" Property="Agente" Title="Agente" />
<RadzenDataGridColumn TItem="Esiti" Title="Incentivo Agente">
<Template Context="esito">
@if (incentivo.UMBenefit == "VENDUTO")
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", esito.ImportoRiga * incentivo.PercBenefit/100)
}
else
{
@if (incentivo.TipoTarget.ToUpper() == "AZIENDALE")
{
if (incentivo.UMBenefit == "FISSO")
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", incentivo.EuroBenefit)
}
else
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", Math.Floor(esito.Cartoni * incentivo.EuroBenefit))
}
}
else
{
if (incentivo.UMBenefit == "FISSO")
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", incentivo.EuroBenefit)
}
else
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C}", esito.importoBenefit)
}
}
}
</Template>
<FooterTemplate>
@if (incentivo.UMBenefit == "VENDUTO")
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", esitiDett.Sum(e => e.ImportoRiga* incentivo.PercBenefit/100))
}
else
{
@if (incentivo.TipoTarget.ToUpper() == "AZIENDALE")
{
if (incentivo.UMBenefit == "FISSO")
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", incentivo.EuroBenefit * incentivo.Per_I_Primi)
}
else
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", Math.Floor(esitiDett.Sum(e =>e.Cartoni)) * incentivo.EuroBenefit)
}
}
else
{
if (incentivo.UMBenefit == "FISSO")
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", incentivo.EuroBenefit * incentivo.Per_I_Primi)
}
else
{
@String.Format(new System.Globalization.CultureInfo("it-IT"), "{0:C2}", esitiDett.Sum(e => e.importoBenefit))
}
}
}
</FooterTemplate>
</RadzenDataGridColumn>
</Columns>
</RadzenDataGrid>