I've attached a code sample to demonstrate my issue.
I would like the ability to filter homogeneous data only at the top level of the grid. In my sample I have two levels each with Description and Total as values. So when I filter on the total field, I do not want the filtering logic to search the depth of the tree, just the breadth of the top level. So in my example where the filter is set to Total < 10, I would like to display the "Meat" and "Dairy" nodes. I would also like to be able to expand the nodes that are left visible. I should not be able to view Fruit, Apples, Bananas, or Oranges.
Is there a way to accomplish this?
Hello Matthew,
Thank you for following up. The connector lines are out of scope for the XamDataGrid. You could retemplate the DataRecordPresenter via the default styles. However I don't find this to be a viable option. The default styles are located here:C:\Program Files\Infragistics\NetAdvantage 20xx.x\WPF\DefaultStyles\DataPresenter
Instead of customizing the style of the XamDataGrid you could revert back to using a XamTreeGrid. There you could use a CollectionView to perform external filtering and avoid letting the XamTreeGrid perform built-in filtering, and avoid causing the opacity behavior on filtered out parent records. This approach gives you more flexibility on what is filtered to avoid any astetics we do under the hood.
An example of this can be found using the XamDataGrid, same principles apply to the XamTreeGrid.https://es.infragistics.com/samples/wpf/data-grid/external-filtering
The only change you need to make is to set FilterEvaluationMode = Manual for on the FieldSettings to take full advantage of the external filtering. I've modified your sample and reattached below to use custom filter logic. For more details I storngly recommend visiting MSDN:
https://docs.microsoft.com/en-us/dotnet/framework/wpf/data/how-to-filter-data-in-a-view
Let me know if you have any questions.
Please see original post. I am using XamDataGrid on your recommendation to work around undesirable filter behavior. If the treelines/row connectors are too involved I understand.
The XamDataGrid doesn't have connector lines, I recommend sticking with the XamTreeGrid. Let me know if you have any questions.
Here is my code, I feel like I am most of the way there, I just need some guidance on the best way to create the row connector lines.
The attached screenshot is what I want it to look like (I am using the XamTreeGrid to get this result).
I'll post my code in a follow up post in a moment...