I have implemented validation on the grid, and there doesn't seem to be a way of styling the error messages.
2 Answers, 1 is accepted
0
Accepted
Lance | Senior Manager Technical Support
Telerik team
answered on 05 Dec 2017, 10:48 PM
Hi David,
The reason you weren't able to find any style or property on the DataGrid is because it's actually a separate control: ValidationControl, which lives inside the Telerik.UI.Xaml.Controls.Primitives namespace.
This can be targeted directly in a style, for example:
<Style TargetType="primitives:ValidationControl">
<Setter Property="Foreground" Value="Red"/>
</Style>
Here's an example of targeting the style, locally scoped to just the DataGrid's resources:
<grid:RadDataGrid >
<grid:RadDataGrid.Resources>
<Style TargetType="primitives:ValidationControl">
<Setter Property="Foreground" Value="Red"/>
</Style>
</grid:RadDataGrid.Resources>
...
</grid:RadDataGrid>
Here's a screenshot at run-time:
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items