How do I remove the And/Or and second filter from the FilterMenu?

1 Answer 35 Views
Grid
Timothy J
Top achievements
Rank 1
Iron
Iron
Timothy J asked on 05 Jun 2021, 07:56 PM

I tried this....  But I end up with nothing....

 

<GridColumn Width="7%" Field="@nameof(VehiclePartModel.YearId)">
                        <FilterMenuTemplate>
                            @{
                                if (context is FilterMenuTemplateContext filterMenuTemplateContext)
                                {
                                    filterMenuTemplateContext.FilterDescriptor.FilterDescriptors.Clear();
                                    filterMenuTemplateContext.FilterDescriptor.FilterDescriptors.Add(new FilterDescriptor(nameof(VehiclePartModel.YearId), FilterOperator.IsEqualTo, string.Empty));

                                }
                            }
                        </FilterMenuTemplate>
                    </GridColumn>

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 09 Jun 2021, 01:25 PM

Hello Timothy,

We have a knowledge-based article that shows how to remove the second filter from the FilterMenu. Can you give the solution in this article a go and get back to me if you achieved the desired result? 

Regards,
Svetoslav Dimitrov
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
Timothy J
Top achievements
Rank 1
Iron
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or