This is a migrated thread and some comments may be shown as answers.

GridViewColumn.ShowFilterButton Property is not working

1 Answer 119 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Idan
Top achievements
Rank 1
Idan asked on 12 Aug 2014, 12:42 PM
Hey,

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>

1 Answer, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 13 Aug 2014, 07:43 AM
Hi,

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.

Regards,
Boris Penev
Telerik
 
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.
 
Tags
GridView
Asked by
Idan
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or