This is a migrated thread and some comments may be shown as answers.

Text Alignment Changing During Scrolling

9 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 13 Sep 2016, 09:28 PM

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

9 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 15 Sep 2016, 02:45 PM
Hello William,

I was able to reproduce the reported issue 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.
0
William
Top achievements
Rank 1
answered on 15 Sep 2016, 02:57 PM

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.

0
Dilyan Traykov
Telerik team
answered on 16 Sep 2016, 07:56 AM
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.
0
William
Top achievements
Rank 1
answered on 16 Sep 2016, 02:02 PM

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.

0
Bruno
Top achievements
Rank 1
answered on 21 Feb 2017, 08:15 AM

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?

0
Dilyan Traykov
Telerik team
answered on 22 Feb 2017, 04:13 PM
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 you to write beautiful native mobile apps using a single shared C# codebase.
0
William
Top achievements
Rank 1
answered on 22 Feb 2017, 04:28 PM

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.

0
Dilyan Traykov
Telerik team
answered on 24 Feb 2017, 09:26 AM
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 you to write beautiful native mobile apps using a single shared C# codebase.
0
Yoan
Telerik team
answered on 15 Mar 2017, 04:26 PM
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.
Tags
GridView
Asked by
William
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
William
Top achievements
Rank 1
Bruno
Top achievements
Rank 1
Yoan
Telerik team
Share this question
or