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
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
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.
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
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.
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?
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
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.
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
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