TwoWay-Binding with ExpandoObject

3 posts, 0 answers
  1. IT-Support
    IT-Support avatar
    9 posts
    Member since:
    Dec 2011

    Posted 21 Apr 2014 Link to this post

    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. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 23 Apr 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Stefan
    Stefan avatar
    5 posts
    Member since:
    Mar 2014

    Posted 22 Sep 2014 in reply to Yordanka Link to this post

    The "Visionaries" 2014 may forgot about bugs from good old 2012. Surprise...they are still alive.
Back to Top