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

Cell border color bug

2 Answers 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
OD
Top achievements
Rank 1
OD asked on 06 Jun 2016, 11:55 AM

Hi, 

I've used your demo solution to understand how cell border color errors works.

I've found a bug if you populate your gridview with enough data to have a vertical scrollbar.

When you scroll down enough to hide first rows, when you scroll up to see the rows, it seems there's a glitch on some cells like you see in the screenshot.

Regards

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 08 Jun 2016, 09:28 AM
Hello ,

Thank you for writing.

I was able to reproduce the observed behavior. It is caused because not all changed styles are reset in the CellFormatting event. To solve this you need to add the following code:
cell.ResetValue(LightVisualElement.BorderBottomColorProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderTopColorProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderLeftColorProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderRightColorProperty, ValueResetFlags.Local);
 
cell.ResetValue(LightVisualElement.BorderBottomShadowColorProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderTopShadowColorProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderLeftShadowColorProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderRightShadowColorProperty, ValueResetFlags.Local);
 
cell.ResetValue(LightVisualElement.BorderBottomWidthProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderTopWidthProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderLeftWidthProperty, ValueResetFlags.Local);
cell.ResetValue(LightVisualElement.BorderRightWidthProperty, ValueResetFlags.Local);

Let me know if I can assist you further.

Regards,
Dimitar
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
OD
Top achievements
Rank 1
answered on 09 Jun 2016, 08:31 AM
Works, thanks :)
Tags
GridView
Asked by
OD
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
OD
Top achievements
Rank 1
Share this question
or