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

Remove row red validation border

2 Answers 897 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 15 Feb 2018, 06:09 PM

I'm using version 2018.1.122.45 of RadGridView.  I'm trying to remove the validation red border for the row.  

I've tried everything possible by coping the entire fluent theme and changing everything to no success.  It seems this border is in the adorner layer.

Can you please provide me some direction on how to remove this border please?

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 20 Feb 2018, 11:29 AM
Hi,

I am unsure whether you mean the validation of the cell or of the row, since the Invalid row does not have a border, but only a semitransparent red background. The cell validation is found in the control template of the GridViewCell, which you can find in the Themes.Implicit/Fluent/ folder of your installation in the Telerik.Windows.Controls.GridView.xaml. You can copy the template and style and make it implicit (without x:Key), make your changes to the Background_Invalid Border and merge the new template in your App.xaml.

If you however refer to the row validation - it is again found in the template for the GridViewRow and it is named again Background_Invalid and you can make a copy of our default template and make your modifications there. And after that merge again a custom implicit style for the GridViewRow in the App.xaml of the project.

If you are referring to the validation tooltips, they are set in the templates again and are both called GridViewValidationToolTipTemplate and referred as static resources.

I hope these approaches would satisfy the needs of your project. If you have any other questions, please do not hesitate to contact us further. If these do not suffice, could I ask you to provide some screenshots of your use case indicating the elements that you would like to change, so I would be able to assist you better.

Regards,
Martin
Progress Telerik
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.
0
Josh
Top achievements
Rank 1
answered on 20 Feb 2018, 04:44 PM

Thanks.  this only got me part way there. 

You still need remove the Validation.ErrorTemplate="{x:Null}" for Rows and Cells

Tags
GridView
Asked by
Josh
Top achievements
Rank 1
Answers by
Martin
Telerik team
Josh
Top achievements
Rank 1
Share this question
or