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

External filter menu

1 Answer 410 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alain
Top achievements
Rank 1
Alain asked on 04 Jun 2019, 07:34 PM

One of the property of in my grid datasource is a color that I want to filter on. I do not whant to show it as colomn.  I'll use a external menu to filter the grid. 

I am using a kendo-multiselect, everything looks fine but on the valuechange event I want to emit the filter CompositeDescriptor without losing previous filters.

Do you have any idea how to do it?

 

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 06 Jun 2019, 11:58 AM
Hello Alain,

You can use the MultiSelect valueChange event to modify the Grid current state/filter and process the data accordingly. You can add the desired filter to the existing array of filter descriptors, available in the State object the Grid is bound to, for example:

https://stackblitz.com/edit/angular-k47jyt?file=app/app.component.ts

Of course, the custom logic related to determining the specific filtering behavior can be modified and customized in accordance with the specific scenario requirements.

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Alain
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or