Posted 3 June 2024, 12:12 pm EST
- Updated 3 June 2024, 12:54 pm EST
Thanks again for the reply.
That’s unfortunate to hear, as binding directly to the nested properties would be more convenient.
I don’t think the FlexGrid works with converters as you are describing either. I’ve put together a small sample. It demonstrates 3 issues:
-
Non-visible columns are still checked by the FullTextFilter. (This could actually be a useful feature, so it may be intended and not a bug.)
-
Columns bound to nested properties are not searched by FullTextFilter (as described above). However, the columns do sort properly, using the correct values from the nested property.
-
Columns using a converter are searched by FullTextFilter. However, the columns do not sort properly, using the unconverted value.
FlexGridFilterIssues.zip
<!-- ISSUE 1: Uncomment this and search for a country name.
The column is not visible, but is included in the search. -->
<!--<c1:Column Binding="{Binding Path=CountryName, Mode=OneWay}" Visible="False" />-->
<!-- ISSUE 2: Comment the above and uncomment this.
Sorting works, but full text filtering does not. -->
<!--<c1:Column Binding="{Binding Path=Country.Name, Mode=OneWay}" />-->
<!-- ISSUE 3: Comment the above and uncomment either.
Full text filtering works, but sorting does not. -->
<!--<c1:Column Header="BindingConverter" Binding="{Binding Path=CountryID, Mode=OneWay, Converter={StaticResource CountryConverter}}" />-->
<!--<c1:Column Header="ValueConverter" Binding="{Binding Path=CountryID, Mode=OneWay}" ValueConverter="{StaticResource CountryConverter}" />-->