FilterIconBackgroundFiltered property doesn't seem to work

1 Answer 60 Views
VirtualGrid
Patrick
Top achievements
Rank 1
Patrick asked on 29 Sep 2023, 05:10 PM | edited on 29 Sep 2023, 05:14 PM

I am setting both the FilterIconBackgroundFiltered and the FilterIconBackground properties on a RadVirtualGrid control in xaml. The FilterIconBackground property changes the filter icon color, but even after adding a filter to a column, the icon never changes to the FilterIconBackgroundFiltered color.

Any thoughts on why this might be happening?

Thanks!


        <tk:RadVirtualGrid x:Name="VirtualGrid"           
            FontSize="{Binding FontSize}"
            Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:ParticleReportControl}}, Path=Foreground}"
            Background="{StaticResource GsBackgroundDark}"
            CanUserFilterColumns="True"
            CanUserSortColumns="True" 
            ColumnHeaderForeground="{StaticResource GsForegroundMain}"
            ColumnHeaderBackground="{StaticResource GsBackgroundDark2}"
            CellTextAlignment="Center"
            LinesVisibility="Both"
            IsFilterable="True"
            FilterIconBackgroundFiltered="Red"
            FilterIconBackground="{StaticResource GsForegroundMain}"
            HorizontalLinesBrush="{StaticResource GsForegroundMain}"
            VerticalLinesBrush="{StaticResource GsForegroundMain}"
            MeasureTextOnRender="True"
            ShowDistinctFilters="False"
            tk:RadContextMenu.ContextMenu="{StaticResource CtxMenu}"
            CellDecorationsNeeded="VirtualGrid_OnCellDecorationsNeeded"
            HeaderCellDecorationsNeeded="VirtualGrid_OnHeaderCellDecorationsNeeded"
            OverlayBrushesNeeded="VirtualGrid_OnOverlayBrushesNeeded"
            HeaderSizeNeeded="VirtualGrid_HeaderSizeNeeded"
            >
        </tk:RadVirtualGrid>

  

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 03 Oct 2023, 10:17 AM

Hi Patrick,

I tested your logic on my side, but it looks like it works fine. When I set FilterIconBackground property to "Red" the result is as following:

I prepared a sample solution for this scenario. If I am missing something, please let me know.

If it is possible, can you give me more information or send me zip file with your project.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
VirtualGrid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or