Search code examples
c#objectlistview

ObjectListView localize the strings used in the Filter menu


I tried to localize the strings that are used in ObjectListViews Filter menu. The Documentation (Link) says I have to set static properties on the FilterMenuBuilder class or put my own instance of FilterMenuBuilder like:

this.olv1.FilterMenuBuilder = new MyFilterMenuBuilder();

So far everything looks good, but my ObjectListView have no FilterMenuBuilder-Property and I didn't know how to get further.

Any Ideas? - Thank you in advance.


Solution

  • According to Comment of Rev1.0

    FilterMenuBuildStrategy
    

    is the correct Property.

    Accessing the Labels for localization only works like Documentation says:

    FilterMenuBuilder.APPLY_LABEL = "test123";
    

    Thanks a lot!!