Right To Left language on DataGridTextColumn

2 posts, 0 answers
  1. Muhammed
    Muhammed avatar
    2 posts
    Member since:
    May 2019

    Posted 11 May 2019 Link to this post

    Hi i'm using trial Ver and when i bind DataGridTextColumn to Arabic letters

    its show Arabic with left to right  on UWP 

    And Unknown Format on Android

    Its show correctly when editing
    screenshot attached

  2. Didi
    Admin
    Didi avatar
    356 posts

    Posted 14 May 2019 Link to this post

    Hello Muhammed,

    Thank you for the provided images.

    Basically, the issue is present in Android and UWP when some languages are used (Chinese, Thai, Arabic, etc) and not in iOS because the first two platforms we are using SkiaSharp to render the elements within the RadDataGrid. In iOS, on the other hand, we are creating native UILabels.

    We have an issue logged in our Feedback portal and here is the link:

    https://feedback.telerik.com/xamarin/1366163-datagrid-android-uwp-some-languages-are-not-properly-rendered-by-skiasharp-elements

    Workaround:

    You could use a DataGridTemplateColumn instead of a TextColumn, for example:

    <telerikDataGrid:DataGridTemplateColumn CanUserEdit="True" HeaderText="Capital">
        <telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
            <DataTemplate>
                <Label Text="{Binding Capital}"/>
            </DataTemplate>
        </telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
    </telerikDataGrid:DataGridTemplateColumn>

    Also keep in mind that TemplateColumn does not support editing, as we're not aware of the content shown in it.

    Please check the attached sample how the workaround is implemented.

    I hope I was helpful.

    Regards,
    Didi
    Progress 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
Back to Top