Controlling the behavior of Kendo Grid Filter

1 Answer 299 Views
Grid
shakye
Top achievements
Rank 1
shakye asked on 12 Jun 2021, 05:08 PM

Hi,

I'm using Kendo Grid Angular implementation. Can we customize the behavior of the column menu filter? I need to stop table filtering but retain all the other functionality(retain filter functionality in the UI). This is mainly because I'm handling the filter implementation in the back end.

Thanks & Regards.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 16 Jun 2021, 08:26 AM

Hello Shakye,

I am not sure what you mean by - 'I need to stop table filtering but retain all the other functionality'.

However, the column menu content of the Grid can be customized by using the kendoGridColumnMenuTemplate. For more details please check the following article from our documentation:

https://www.telerik.com/kendo-angular-ui/components/grid/columns/menu/#toc-customizing-the-content

The template allows excluding features from the column menu which are rendered by default (like filtering). Here is an example demonstrating this in action:

https://stackblitz.com/edit/angular-syc9de

I hope this sheds some light. In case I misunderstood the requirement, please could I ask for further details about the scenario and how the column menu should look like in this case. Thank you in advance.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

shakye
Top achievements
Rank 1
commented on 16 Jun 2021, 08:39 AM

Hi Martin,

Thanks for your reply. Our requirement is to prevent the default behavior of the filter. I basically need the filter not to filter the table but to hold the value of the filter. This is mainly because we handle the filtration in the back-end of the application, we just want to pass the filtering values to the back-end without filtering the table from the UI. However we figured it's best if we have our own filter component, but if there's an ability to achieve this functionality let me know. Hope it makes sense :).

Thanks & Regards.
Martin
Telerik team
commented on 21 Jun 2021, 05:28 AM

Hi Shakye, 

Thanks for the provided additional details on this case.

Indeed disabling the default column menu filter is not possible at the moment. What I can suggest is to utilize the aforementioned template, to create custom controls that will show the filtered value received from the server.

Tags
Grid
Asked by
shakye
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or