Telerik Grid Filter icons are visible even when showFilterIcon set to false

1 Answer 27 Views
Grid
Pribadi
Top achievements
Rank 1
Iron
Iron
Pribadi asked on 24 May 2021, 04:26 PM

Hi,

How to remove filter icon for a specific column in grid? Approach we followed is set showFilterIcon to false in grid template column tag.

Below is the code and the screenshot. Suggest us the solution.

<Telerik:GridTemplateColumn  SortExpression="PoNumber" ItemStyle-HorizontalAlign="Center" Visible="TRUE" HeaderText="PoNumber" 
AllowFiltering="false" ShowFilterIcon="false" ItemStyle-Width="25%"  GroupByExpression="PoNumber Group By PoNumber">
<HeaderStyle Width="25%" HorizontalAlign="Center" />
<ItemTemplate>
<Telerik:RadLabel ID="lblPoNumber" Runat="server" Text='<%# DataBinder.Eval ( Container.DataItem, "PoNumber" ) %>'>

</Telerik:RadLabel>
</ItemTemplate>
</Telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 27 May 2021, 09:20 AM

Hi Pribadi,

Please try setting the EnableHeaderContextMenu property of the GridTemplateColumn to false:

<telerik:GridTemplateColumn EnableHeaderContextMenu="false" SortExpression="PoNumber" ItemStyle-HorizontalAlign="Center" Visible="TRUE" HeaderText="PoNumber"...>
Hiding the filter icon with ShowFilterIcon="false" is the correct approach when using Classic filtering. As I can see from the provided screenshot, in the current case HeaderContext filtering is used.

Please try the suggested above and let me know how it goes.

Kind regards,
Doncho
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
Grid
Asked by
Pribadi
Top achievements
Rank 1
Iron
Iron
Answers by
Doncho
Telerik team
Share this question
or