ItemPropertyInfo descriptor is not supported.

2 posts, 0 answers
  1. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 23 Apr 2013 Link to this post

    Hello Telerik,

    My code is throwing exception:

    void mainViewModel_Changed(object sender, EventArgs e)
            {
                this.rpg.PropertyDefinitions.Clear();
                Telerik.Windows.Controls.Data.PropertyGrid.PropertyDefinition pd;
     
     
                pd = new Telerik.Windows.Controls.Data.PropertyGrid.PropertyDefinition(new Telerik.Windows.Data.ItemPropertyInfo("Name", typeof(string), ""))
                {
                    Binding = new Binding("Name") { Mode = BindingMode.TwoWay },
                    EditorTemplate = (DataTemplate)this.Resources["pbTextTemplate"]
                };
                 
     
                this.rpg.PropertyDefinitions.Add(pd);
     
            }

    Property definition cannot be created.

    What can be the problem please?

    rpg type is RadPropertyGrid

    Thank you.

    Tom

  2. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 23 Apr 2013 Link to this post

    Solved with parameterless constructor...

    BYe Tom
  3. DevCraft banner
Back to Top