Hi
I have a search field and a data grid with allow filtering set to true. When using the search field the grid gets populated with data collected in a virtualized manner (small subsets). Eg. if i have 1000 records and virtualization max record fetch is 100 the grid loads the 1st subset of 100 records. With the grid filter however the grid loads all subsets. Is there a way to prevent this?
Also when setting FilterAction to none the filtered items are grayed out. Is there any way to disable this?
And last but not least typing a value in a filter field triggers the event RecordFilterChanged but not when deleting that value. Why is that?
Hi,
Glad you have worked this out. Please just verify the thread as answered so it helps other users as well. Regarding the other forum thread I’ll so to its resolution, you have to only follow its development.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Thanks for the answer.
I've found a way around this and that is to cancel the filtering in the "RecordFilterChanging" event then do my own filtering logic.
The only unsolved problem for me is resetting the textbox values of the filters. Any help would be appreciated: http://forums.infragistics.com/forums/p/48445/258257.aspx#258257
Hello Marco,
I have been looking into your issue and have been trying to find a way around this, but to no avail. Actually the filtering requires all the data in the Datasource in order to get an accurate result. Regarding the FitleredOut records I have found a way for you to achieve the FilteredOut records styling issue. What you can do is get the original template for the DataRecordPresenter form the DefaultStyles folder and remove the trigger responsible for setting the opacity. This is it inside the original template:
<Trigger Property="IsFilteredOut" Value="True">
<Setter TargetName="PART_RecordContentSite" Property="Opacity" Value="0.35"/>
</Trigger>
You can either remover or alter you to your liking.
Please let me know if there is anything else I can help you with.