Last Updated: 16 Jul 2020 06:00 by ADMIN
Created on: 15 Jul 2020 13:27
Category: PropertyGrid
Type: Bug Report
RadPropertyGrid: ExpandableObject is not working with multiple selected items


we are trying to use RadPropertyGrid to show the properties of some objects listed in a RadGrdiView. 

We use ExpandableObject to expand our custom property, but we have some problems when we try to show the properties of multiple selected items, when the values of the attribute of the property are not the same in all the selected objects. We tried to use PropertyGrid of Winform and we don't have this problem. 

Thank you.

Attached Files:
1 comment
Dess | Tech Support Engineer, Principal
Posted on: 16 Jul 2020 06:00


Indeed, when using a single object, the ExpandableObjecConverter works as expected:

this.radPropertyGrid1.SelectedObject = new Viapoint();

But when specifying the SelectedObjects, it is not respected (MS PropertyGrid works as it should):

 this.radPropertyGrid1.SelectedObjects = vias;

I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to use a RadPropertyStore and add the property items that you want. 

            PropertyStoreItem item = new PropertyStoreItem(typeof(int), "Vector3", new Vector3(){X = 1,Y = 10,Z = 100});
            item.Attributes.Add(new TypeConverterAttribute(typeof(ExpandableObjectConverter)));
            RadPropertyStore store = new RadPropertyStore();
            this.radPropertyGrid1.SelectedObject = store;

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Dess | Tech Support Engineer, Sr.
Progress Telerik