Text Alignment Changing During Scrolling

10 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
    471 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
    471 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 21 Feb 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
    471 posts

    Posted 22 Feb 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 22 Feb 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.

  9. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    471 posts

    Posted 24 Feb Link to this post

    Hello,

    I understand your concerns and can assure you that we're constantly working on improving our products.

    As this issue seems critical to your scenario, I've increased its priority in our backlog accordingly and have discussed possible solutions with the development team. They will update the feedback item as soon as they start working on a fix.

    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.
  10. Yoan
    Admin
    Yoan avatar
    1089 posts

    Posted 15 Mar Link to this post

    Hello,

    This issue should be resolved in our latest internal build. You can download it and give it a try. You can check the Using the Hotfix (DLLs Only) help article for a reference.

    Please let us know if you need further assistance on this.


    Regards,
    Yoan
    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.
Back to Top