Hi,
i use the RadPropertyGrid to show the properties of an ExpandoObject in unbound mode (AutoGenerateBindingPaths=false and AutoGeneratePropertyDefinitions=false). The PropertyDefinitions are created in code by my ViewModel.
In pseudo code my view model looks like:
On a first glance it seems to work. The property with the current value appears in the PropertyGrid.
But unfortunally the update is not working. When I change the value of the property in the PropertyGrid, the model is not updated.
Is there a mistake on my side?
Best regards,
Thomas
i use the RadPropertyGrid to show the properties of an ExpandoObject in unbound mode (AutoGenerateBindingPaths=false and AutoGeneratePropertyDefinitions=false). The PropertyDefinitions are created in code by my ViewModel.
In pseudo code my view model looks like:
dynamic model =
new
ExpandoObject();
model.MyProperty = 42;
PropertyDefinition property =
new
PropertyDefinition
{
DisplayName = "MyProperty",
Binding =
new
Binding(
"MyProperty"
)
{
Source = model,
Mode = BindingMode.TwoWay
}
};
On a first glance it seems to work. The property with the current value appears in the PropertyGrid.
But unfortunally the update is not working. When I change the value of the property in the PropertyGrid, the model is not updated.
Is there a mistake on my side?
Best regards,
Thomas