How to search property name and value at property grid

2 posts, 0 answers
  1. Khanh
    Khanh avatar
    17 posts
    Member since:
    May 2018

    Posted 09 Aug 2018 Link to this post

     I have a property grid. Property name = Appearance and has child cursor,font,Imagelist,... But ai search Appearance has not result. I expect search with property name= Appearance . has result with child.


  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3406 posts

    Posted 09 Aug 2018 Link to this post

    Hello, Khanh,       

    "Appearance" is the name of a group, not a property name. That is why the search box, doesn't show any filter results. The default FilterDescriptor filters by the Label. You can filter by the following criteria’s:
    Name: The property name.
    Value: The property value.
    Category: Assigned from the Category attrubute name.
    FormattedValue: The value of the property converted to string.
    Label: By default this is identical to the property name, unless changed by setting the Label property of the item.
    Description: This is determined by the property Description attribute
    OriginalValue: The value used when the property is initialized.

    It is possible to handle the RadPropertyGrid.FilterDescriptors.CollectionChanged event and change the FilterDescriptor.PropertyName property to "Category". Thus, the category name will be considered when filtering: 

    private void FilterDescriptors_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        if (this.radPropertyGrid1.FilterDescriptors.Count>0)
            this.radPropertyGrid1.FilterDescriptors[0].PropertyName = "Category";

    I hope this information helps. If you have any additional questions, please let me know.  
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top