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

RadPropertyGrid search box bug

1 Answer 59 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Valery
Top achievements
Rank 1
Veteran
Valery asked on 15 Mar 2018, 11:13 AM

A simple example:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            radPropertyGrid1.SelectedObject = new MyClass();
        }

        [TypeConverter(typeof(ExpandableObjectConverter))]
        public class First
        {
            [DisplayName("Name"), Category("first")]
            public string Name { get; set; }

            [DisplayName("Color"), Category("first")]
            public Color MyColor { get; set; }

            public First()
            {
                Name = "Foo";
                MyColor = Color.Aqua;
            }
            public override string ToString()
            {
                return string.Empty;
            }
        }
        [TypeConverter(typeof(ExpandableObjectConverter))]
        public class Second
        {
            [DisplayName("SubName"), Category("Second")]
            public string SubName { get; set; }

            [DisplayName("SubColor"), Category("Second")]
            public Color MySubColor { get; set; }

            public Second()
            {
                SubName = "Any";
                MySubColor = Color.Red;
            }
            public override string ToString()
            {
                return string.Empty;
            }
        }

        public class MyClass
        {
            [DisplayName("First"), Category("Item0")]
            public First Item0 { get; set; }
            [DisplayName("Second"), Category("Item1")]
            public Second Item1 { get; set; }

            public MyClass()
            {
                Item0 = new First();
                Item1 = new Second();
            }
        }
    }

If I do a search, the RadPropertyGrid finds the name only in the second part of MyClass

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 Mar 2018, 12:22 PM
Hi Valery,

I have logged this issue on our Feedback Portal. You can track its progress, subscribe to status changes and add your comment to it here. I have also updated your Telerik Points.

Unfortunately, due to the nature of the issue, I cannot suggest a workaround.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PropertyGrid
Asked by
Valery
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Share this question
or