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

TwoWay-Binding with ExpandoObject

2 Answers 198 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
IT-Support
Top achievements
Rank 2
IT-Support asked on 21 Apr 2014, 07:48 PM
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:

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


2 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 23 Apr 2014, 10:29 AM
Hello Thomas,

Thank you for the report.

I was able to reproduce the problem and logged it for further investigation. You can track its status following the corresponding feedback item.

I've updated your Telerik points.

Regards,
Yordanka
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Stefan
Top achievements
Rank 1
answered on 22 Sep 2014, 10:19 AM
The "Visionaries" 2014 may forgot about bugs from good old 2012. Surprise...they are still alive.
Tags
PropertyGrid
Asked by
IT-Support
Top achievements
Rank 2
Answers by
Yordanka
Telerik team
Stefan
Top achievements
Rank 1
Share this question
or