sort symbol in column header not showing correctly

3 posts, 0 answers
  1. Hermann
    Hermann avatar
    2 posts
    Member since:
    Jul 2014

    Posted 03 Dec 2015 Link to this post

    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. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 07 Dec 2015 Link to this post

    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
  3. Hermann
    Hermann avatar
    2 posts
    Member since:
    Jul 2014

    Posted 08 Dec 2015 in reply to Ivaylo Gergov Link to this post

    Ok, thanks for your reply.
Back to Top