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

The Searchbox when AutoGeneratePropertyDefinitions is false

3 Answers 36 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Ari
Top achievements
Rank 1
Ari asked on 05 Oct 2012, 08:36 PM
Hi...

I've got AutoGeneratePropertyDefinitions set to false, and am generating my own property definitions, and have bound the property grid to my own custom object.  The problem I'm running into is that the search box at the top of the property grid won't work.  Typing anything into it results in all of my properties being hidden.  I've poked around a bit, and suspect that the problem is that the expression used to determine if a property should be shown or not is not correct for how I'm using the control.  

How can I get this to work?  Is it supported?

Thanks,

-Ari

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 08 Oct 2012, 08:55 AM
Hi Ari,

Generally, searching is based on the values of DisplayName property for each PropertyDefinition. You can test the functionality in our demos. Is your scenario different than this one ? 

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ari
Top achievements
Rank 1
answered on 09 Oct 2012, 10:12 PM
Hi...

All the demos have AutoGeneratePropertyDefinitions set to true, and that doesn't match my usage, unless there's one I didn't see.  Ideally I could customize to search on stuff besides DisplayName, but I can't get it to work even on DisplayName.  The Item I'm binding to is a custom object, which is definitely differnt from how it works when you bind to the object whose properties you are showing, and I think the Expression used to get the DisplayName isn't handling that correctly.  I'm wondering if there is an example where it works though.

Thanks,

-Ari

0
Maya
Telerik team
answered on 10 Oct 2012, 07:27 AM
Hi Ari,

The demo I posted link to(http://demos.telerik.com/silverlight/#PropertyGrid/ManuallySetDefinitions
) is in fact not using auto generated fields. Do you get the same behavior on it ?
Furthermore, in case this example does not help, it would be great if you could send us a sample project illustrating your settings and requirements. Otherwise, all my suggestion would be only guesses based on probably more common scenarios. 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PropertyGrid
Asked by
Ari
Top achievements
Rank 1
Answers by
Maya
Telerik team
Ari
Top achievements
Rank 1
Share this question
or