Text Alignment Changing During Scrolling

5 posts, 0 answers
  1. William
    William avatar
    3 posts
    Member since:
    Mar 2013

    Posted 13 Sep Link to this post

    We have been using the Telerik GridView for WPF for 4 years. We took the 2013 GridView and customized the styles (see attached). We recently updated to Telerik.Windows.Controls.GridView 2016.2.613.45 and now have strange scrolling behavior. The text alignment of content changes when scrolling and that content reaches the GridView bounds.

    Video: https://dl.dropboxusercontent.com/u/23017318/Auction%20Management%20v6.0.0.9%209_13_2016%204_03_10%20PM.mp4

    Styling Code: https://dl.dropboxusercontent.com/u/23017318/TelerikGridView.xaml

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 15 Sep Link to this post

    Hello William,

    I was able to reproduce the reported issue at my end and have thus logged a bug report in our feedback portal. As a thank you for your help, I've awarded you with some Telerik points.

    For the time being, you can explicitly set the TextAlignment property either in XAML or through code-behind:

    <telerik:GridViewDataColumn Style="{StaticResource DataColumnInteger}" TextAlignment="Right" />

    I hope that you find this workaround satisfactory for your scenario.

    Regards,
    Dilyan Traykov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. William
    William avatar
    3 posts
    Member since:
    Mar 2013

    Posted 15 Sep in reply to Dilyan Traykov Link to this post

    Dilyan,

    Thanks for looking into this and reporting a bug. Your suggestion isn't actually a work around. There is no issue with columns that have right text alignment. The issue only occurs on columns with left text alignment. Explicitly setting the text alignment as you suggested to left does not work around the issue.

  5. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 16 Sep Link to this post

    Hello William,

    What I had in mind was to set the TextAlignment property of the columns in addition to applying the desired styles. I'm attaching a sample project to better demonstrate what I have in mind.

    Please give this approach a try and let me know if it works for you.

    Regards,
    Dilyan Traykov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. William
    William avatar
    3 posts
    Member since:
    Mar 2013

    Posted 16 Sep in reply to Dilyan Traykov Link to this post

    Dilyan,

    I see. I went and applied the text alignment to all columns and now the scrolling is working correctly. We have a lot of pages and hundreds of columns which is why we created those styles. A fix for this as soon as possible would be much appreciated.

Back to Top
UI for WPF is Visual Studio 2017 Ready