The Searchbox when AutoGeneratePropertyDefinitions is false

4 posts, 0 answers
  1. Ari
    Ari avatar
    14 posts
    Member since:
    Jul 2012

    Posted 05 Oct 2012 Link to this post

    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
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 08 Oct 2012 Link to this post

    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.

  3. DevCraft banner
  4. Ari
    Ari avatar
    14 posts
    Member since:
    Jul 2012

    Posted 09 Oct 2012 Link to this post

    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

  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 10 Oct 2012 Link to this post

    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.

Back to Top