Behind the scene we need to update any changes made in the property grid, in a SQL Server database, too. With our current implementation we fire a database request if a property is edited in the property grid. This is fine if only one entity has been selected. If more than one entity has been selected (ProperytSetMode “Intersection”) a database request is fired for each entity if a property is edited. This is not very performant for us. We need an event like “EditEnded” to figure out when the PropertySetViewModel has updated all ViewModels. Then we are able to updated the necessary changes in the database in a single call.
An non edit mode is enabled in the control when the EditMode is set to Single. In this case, only one field can enter edit mode and the rest are read only.
Currently, there is no API that allows you to customize the content (that shows the property value) of the read only fields.
Add an API that allows you to customize the read only content. Similar to the EditorTemplate of the PropertyDefinition.
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.
Currently, if you change the value of a property in the object bound to the property grid control, the control's UI won't reflect this change.