question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering on children object property

See original GitHub issue

Salut Gilles !

The filtering on a property of a children object doesn’t seem to work. (See the last column)

    <filterdatagrid:FilterDataGrid
                Style="{DynamicResource MaterialDesignDataGrid}"
                ItemsSource="{Binding Documents, UpdateSourceTrigger=PropertyChanged}"
                SelectedItem="{Binding SelectedDocument}"
                FontSize="12"
                Grid.Row="1"
                MinHeight="150"
                MaxHeight="250"
                FilterLanguage="French"
                AutoGenerateColumns="False"
                CanUserAddRows="False"
                CanUserDeleteRows="False"
                SelectionMode="Single"
                SelectionUnit="FullRow">
                <filterdatagrid:FilterDataGrid.Columns>
                    <filterdatagrid:DataGridTemplateColumn
                        Width="50"
                        >
                        <filterdatagrid:DataGridTemplateColumn.CellTemplate>
                            <DataTemplate
                                >
                                <materialDesign:PackIcon
                                    Kind="{Binding DocumentIcon}"
                                    Foreground="{Binding LifeCycleVM.CurrentLifeCycle.Background}" />
                            </DataTemplate>
                        </filterdatagrid:DataGridTemplateColumn.CellTemplate>
                    </filterdatagrid:DataGridTemplateColumn>
                    <filterdatagrid:DataGridTextColumn
                        Header="Code"
                        Binding="{Binding Code}"
                        Width="150"
                        IsReadOnly="True"
                        IsColumnFiltered="True"
                        />
                    <filterdatagrid:DataGridTextColumn
                        Header="Révision"
                        Binding="{Binding Revision}"
                        Width="125"
                        IsReadOnly="True"                        
                        />
                    <filterdatagrid:DataGridTextColumn
                        Header="Version"
                        Binding="{Binding LatestDocumentVersion.FormattedVersion}"
                        Width="80"
                        IsReadOnly="True" />

                    <filterdatagrid:DataGridTextColumn
                        Header="Description"
                        Binding="{Binding Name}"
                        Width="250"
                        IsReadOnly="True"
                        IsColumnFiltered="True" />
                    <filterdatagrid:DataGridTextColumn
                        Header="Cycle de vie"
                        Binding="{Binding LifeCycleVM.CurrentLifeCycle.Description}"
                        Width="500"
                        IsReadOnly="True"
                        IsColumnFiltered="True" />
                </filterdatagrid:FilterDataGrid.Columns>
            </filterdatagrid:FilterDataGrid>

document_datagrid

Is it a limitation or am I missing something?

Thanks in advance,

Sébastien

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
macgilecommented, Jan 31, 2023

Ok, I will test this weekend and if everything is good I merge the request

1reaction
RaceX58commented, Jan 31, 2023

I’ve pushed a pull request #96

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to filter on properties of children object and return ...
I want to filter on the property of children object and return parents with children that passes the filter. I tried with combination...
Read more >
Filter an array of objects, checking only specified properties ...
The function filterList recieves an array of objects and filters the list, checking only the properties of the object specified in a ' ......
Read more >
Filtering Nested Child Objects - Elasticsearch
I am trying to fine tune the query on a nested collection. The nested collection should match all the criteria and the size...
Read more >
Injecting additional children filters or filtering resulting list of ...
The problem is that my T has some child collections which I need to filter based on some property of each of the...
Read more >
Stage 5: Implementing a Filter to Prevent Learning Child Objects
In this section, you create a filter to prevent UFT One from learning all of the UsedBooks control's children along with the control....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found