Text Alignment Changing During Scrolling

8 posts, 0 answers
  1. William
    William avatar
    4 posts
    Member since:
    Mar 2013

    Posted 13 Sep 2016 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
    417 posts

    Posted 15 Sep 2016 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. William
    William avatar
    4 posts
    Member since:
    Mar 2013

    Posted 15 Sep 2016 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.

  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    417 posts

    Posted 16 Sep 2016 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.
  5. William
    William avatar
    4 posts
    Member since:
    Mar 2013

    Posted 16 Sep 2016 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.

  6. Bruno
    Bruno avatar
    4 posts
    Member since:
    Sep 2014

    Posted 2 days and 12 hours ago Link to this post

    Dilyan,

    I have exactly the same problem as William with the 2016.3.1024.45 version of the controls. Can you tell me if a fix has been planned?

    If not, is there an alternative solution than to add the TextAlignment property on all right aligned columns? For example: would the problem be solved by creating a custom GridViewDataColumn with a fixed TextAlignment property?

  7. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    417 posts

    Posted 1 day and 4 hours ago Link to this post

    Hello,

    Unfortunately, we cannot commit to a certain time-frame for a fix for this due to the number of items in our backlog with higher priority. You can subscribe to the following bug report in our feedback portal in order to get notified about any changes to its status.

    However, the approach you suggested would indeed also work should you find it more applicable.

    Regards,
    Dilyan Traykov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  8. William
    William avatar
    4 posts
    Member since:
    Mar 2013

    Posted 1 day and 4 hours ago Link to this post

    Dilyan,

    It's unfortunate that Telerik is not committed to fixing bugs in their code. We built several enterprise applications around the Telerik grid view for WPF. Managing hundreds or thousands of grid columns by hard coding attributes due to a bug that can't use inherited styles is unreasonable at the enterprise level and does not equip us to scale. We're now designing new solutions to phase out and stop using Telerik products as a result of the lack of commitment of Telerik to fix this bug in software we're paying good money for.

Back to Top