GridViewColumn.ShowFilterButton Property is not working

2 posts, 0 answers
  1. Idan
    Idan avatar
    2 posts
    Member since:
    Jun 2014

    Posted 12 Aug 2014 Link to this post


    The filter button in the column header still showing, any idea how to hide it?
    I'm using the following code:

    01.<telerik:RadGridView x:Name="radGridView" AutoGenerateColumns="False" GroupRenderMode="Flat" CanUserReorderColumns="True"
    02.                             ColumnBackground="Transparent" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" RowHeight="17" SelectionMode="Multiple"
    03.                             CanUserSelect="True" SelectionUnit="FullRow" EnableLostFocusSelectedState="False"
    04.                             HeaderRowStyle="{DynamicResource GridViewHeaderRowStyle1}"
    05.                             Style="{DynamicResource RadGridViewStyle1}"
    06.                             RowStyle="{DynamicResource GridViewRowStyle1}"
    07.                             GroupRowStyle="{DynamicResource GridViewGroupRowStyle1}"
    08.                             ItemTemplate="{DynamicResource DataTemplate1}">
    09.            <telerik:RadGridView.Columns>
    10.                <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayName}" Header="{DynamicResource ManageTempListNameLabel}" Width="150" ShowFilterButton="false" IsFilteringDeferred="True" IsReadOnly="True"/>
    11.                <telerik:GridViewDataColumn DataMemberBinding="{Binding Artist}" Header="{DynamicResource ManageTempListArtistLabel}" Width="100" ShowFilterButton="true" IsFilteringDeferred="True" IsReadOnly="True"/>
    12.                <telerik:GridViewDataColumn DataMemberBinding="{Binding Album}" Header="{DynamicResource ManageTempListAlbumLabel}" Width="75" IsReadOnly="True" IsVisible="False"/>
    13.                <telerik:GridViewDataColumn DataMemberBinding="{Binding Duration}" Header="{DynamicResource ManageTempListDurationLabel}" Width="55" IsResizable="False" IsReadOnly="True" IsVisible="False"/>
    14.            </telerik:RadGridView.Columns>
    15.        </telerik:RadGridView>

  2. Boris
    Boris avatar
    276 posts

    Posted 13 Aug 2014 Link to this post


    In order to hide the filter funnel you can set the IsFilterable property of the GridView column to "False". By doing so you are indicating whether this column can be filtered through the UI.

    I hope this helps.

    Boris Penev
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top