When the Expression_Dark theme is applied to the RadPropertyGrid, selecting an item is hard to read, as the item's foreground is white and the selection state is in a similar color.
To work this around, use the following Style:
<Style TargetType="telerik:PropertyGridField">
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Foreground" Value="Black"/>
</Trigger>
</Style.Triggers>
</Style>
When a RadPropertyGrid instance is placed inside a RadBusyIndicator, the StyleManager cannot apply the styles correctly and it causes an InvalidOperationException at runtime.
Workaround: Use the NoXaml version of the assemblies with the needed themes.
SelectedPropertyDefinitions are not cleared when RadPropertyGrid.Item being changed.
If you have a data validation, and there is an invalid field with the red border around it, if you hide this field via the filtering feature or the collapsing its group, the validation red border (and the tooltip) disappears.
To resolve this, you will need to update the ErrorTemplate of the input field (the TextBox). You can do this in the FieldLoaded event handler.
private
void
RadPropertyGrid_FieldLoaded(
object
sender, Telerik.Windows.Controls.Data.PropertyGrid.FieldEventArgs e)
{
if
(e.Field.Content
is
TextBox)
{
var editor = (TextBox)e.Field.Content;
var bindingExpression = BindingOperations.GetBindingExpression(editor, TextBox.TextProperty);
if
(bindingExpression.ValidationError !=
null
)
{
var errorTemplate = Validation.GetErrorTemplate(editor);
Validation.SetErrorTemplate(editor,
null
);
Validation.SetErrorTemplate(editor, errorTemplate);
}
}
The item status is set to Declined as it is already logged in our system: https://feedback.telerik.com/Project/143/Feedback/Details/202982-propertygrid-selectedpropertydefinitions-are-not-cleared-when-radpropertygrid-it.
Available in the 2017 R2 Release.
Available in LIB version 2017.3.1127, it will be also available in the R1 2018 Release.
RadPropertyGrid exposes PropertySetsValidationFunc property that validates the new value of a property. However, it is executed after the property is set. PropertyGrid should validate them before the setter is invoked. Available in LIB version: 2017.2.605
Nullable properties with non-matching values are not updated after clearing the entire text of the field(PropertySets). Available in LIB version: 2017.2.515
The editor of nullable properties with non-matching values does not display the default value for this type(null) using PropertySets. Available in LIB version: 2017.2.515