Hi,
I'm using the DataFilter control placed in a ToolBar (in unbound mode (if relevant)).
I need to know when a filter definition has been changed, therefore I have registered the "CollectionChanged" and "ItemChanged" events on the FilterDescriptors collection. This is works fine, with one exception. If the user only changes a filter value, the filter definition is not changing until he hits enter of click a other control inside the DataFilter. But in my case he could click on a separate "Refresh' button inside the ToolBar. In this case the the "FilterDescriptors" do not change (no focus change as the value control still shows the focus border) and so the filter is showing something different than the "FilterDescriptors" are reporting.
My question is is there a know workaround for such a situation?
Many thanks
Thomas
I'm using the DataFilter control placed in a ToolBar (in unbound mode (if relevant)).
<
ToolBarTray
DockPanel.Dock
=
"Top"
Name
=
"toolBarTrayTop"
>
<!-- Filter Toolbar -->
<
ToolBar
Height
=
"26"
Name
=
"toolBarFilter"
Visibility
=
"{Binding Path=ToolsFilterVisibility}"
>
<
Button
Name
=
"btnFilterRefresh"
Command
=
"{Binding Path=FilterRefreshCommand}"
Style
=
"{StaticResource BtnRefreshNeededIndication}"
>
</
Button
>
</
ToolBar
>
<!-- FilterSettings Toolbar -->
<
ToolBar
Name
=
"toolBarFilterSettings"
Visibility
=
"{Binding Path=ToolsFilterSettingsVisibility}"
>
<
telerik:RadDataFilter
Name
=
"radDataFilterMain"
local:DataFilterMarkupExtension.FilterItems
=
"{Binding DefaultFilterItems}"
local:DataFilterMarkupExtension.FilterDefinitions
=
"{Binding DefaultFilterDescriptors}"
/>
</
ToolBar
>
</
ToolBarTray
>
I need to know when a filter definition has been changed, therefore I have registered the "CollectionChanged" and "ItemChanged" events on the FilterDescriptors collection. This is works fine, with one exception. If the user only changes a filter value, the filter definition is not changing until he hits enter of click a other control inside the DataFilter. But in my case he could click on a separate "Refresh' button inside the ToolBar. In this case the the "FilterDescriptors" do not change (no focus change as the value control still shows the focus border) and so the filter is showing something different than the "FilterDescriptors" are reporting.
My question is is there a know workaround for such a situation?
Many thanks
Thomas