Hi,
The grid column headers split the view model property names when there is an uppercase character in the viemodel property name. That is good. But when I have an non-English character in the name the column header will also be split. Is this the intended behaviour? I know I can workaround the issue by using DisplayName in the model or .Title() in the grid, but that is a lot of unnecessary work.
ViewModel:
public class AvslagnaIndexViewModel
{
public Guid Id { get; set; }
public string DiarieNummerSSM { get; set; }
public DateTime AnsökningsDatum { get; set; }
public string Handläggare { get; set; }
public string ExportörNamn { get; set; }
public string SlutanvändareNamn { get; set; }
public string BestämmelseLandNamn { get; set; }
public string Status { get; set; }
}
Grid columns:
.Columns(columns =>
{
columns.Bound(p => p.Id).Hidden().Title("Id");
columns.Bound(p => p.DiarieNummerSSM).ClientTemplate(
Html.ActionLink("#=DiarieNummerSSM#", "Details", "Avslagna", new { id = "#=Id#" }, new { title = "Visa ärendedetaljer", @class = "k-link k-grid-edit-row" }).ToHtmlString()).Width(120);
columns.Bound(p => p.AnsökningsDatum).Format("{0:yyyy-MM-dd}");
columns.Bound(p => p.Handläggare);
columns.Bound(p => p.ExportörNamn);
columns.Bound(p => p.SlutanvändareNamn);
columns.Bound(p => p.BestämmelseLandNamn);
columns.Bound(p => p.Status);
})
See the attached image for the result. All words containing non-English caracters are split in more places than they should be. As you can see "BestämmelseLandNamn" is shown as "Bestä mmelse Land Namn"
Best regards,
Henrik