This is a migrated thread and some comments may be shown as answers.

sort symbol in column header not showing correctly

2 Answers 70 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hermann
Top achievements
Rank 1
Hermann asked on 03 Dec 2015, 10:15 AM

Good morning,

I'm using the RadDataGrid control from 'UI for Windows Universal'.
When clicking on a column header, the rows are correctly sorted, but the sort symbol that shows up next to the header name is not showing correctly.

By inspecting that symbol with 'Live Visual Tree' I can see it's a TextBlock with FontFamily set to 'Segoe MDL2 Assets'.
By changing that to 'Segoe UI Symbol' in the 'Live Property Explorer', the symbol shows correctly (a black triangle).

I attached a screenshot that shows the issue.

 Here is some code to reproduce the issue.

<Page
    x:Class="RadDataGridTest.MainPage"
    xmlns:local="using:RadDataGridTest"
    xmlns:grid="using:Telerik.UI.Xaml.Controls.Grid"
    xmlns:core="using:Telerik.Data.Core"
    mc:Ignorable="d"   
    Name="Self">
 
    <Grid>
        <grid:RadDataGrid
            AutoGenerateColumns="True"
            ItemsSource="{Binding ElementName=Self, Path=Items}"/>
    </Grid>
</Page>
 

 

public sealed partial class MainPage : Page
{
    public MainPage()
    {
        this.InitializeComponent();
    }
 
    public List<Item> Items
    {
        get
        {
            return new List<Item>
            {
                new Item { Field = "Bravo" },
                new Item { Field = "Alpha" },
                new Item { Field = "Charlie" }
            };
        }
    }
}
 
public class Item
{
    public string Field { get; set; }
}

 

How can I fix this issue?

Thank you for your help.

2 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 07 Dec 2015, 09:22 AM
Hello,

We are aware of this issue and it will be fixed for our next release. Currently the only way to change the FontFamily of this TextBlock is to get the template of the DataGridColumnHeader  â€‹control from our source code and set it manually.

Sorry for any inconvenience caused.

Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Hermann
Top achievements
Rank 1
answered on 08 Dec 2015, 06:36 AM
Ok, thanks for your reply.
Tags
DataGrid
Asked by
Hermann
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Hermann
Top achievements
Rank 1
Share this question
or