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

Reusable Custom Multiselect Grid Filter

5 Answers 1288 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 17 Dec 2019, 09:48 PM

I see the example for the Reusable Custom Filter with a DropDownList do you happen to have a similar example with a multiselect list. 

I am attempted to create a multi select reusable filter to be used in a grid menu filter.

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/reusable-filter/

5 Answers, 1 is accepted

Sort by
0
Nathan
Top achievements
Rank 1
answered on 17 Dec 2019, 09:50 PM
Since you don't allow editing of posts or deletion can you please change the name of this forum post to "Reusable Custom Multiselect Grid Filter" so others can benefit?
0
Dimiter Topalov
Telerik team
answered on 19 Dec 2019, 09:16 AM

Hi Nathan,

You can use the Kendo UI for Angular MultiSelect component directly in the Grid Filter Menu template as demonstrated in the following section of our documentation:

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/built-in-template/#toc-customizing-filter-menus

Alternatively, you can wrap the MultiSelect in a standalone custom component and use the wrapper instead, but multiple @Inputs and @Outputs will have to be used to pass information and events between the MultiSelect and the wrapper, for example:

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

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.
0
Nathan
Top achievements
Rank 1
answered on 19 Dec 2019, 01:44 PM

Thanks for your response, the first article is one of the articles I have been attempting to follow. I will continue trying to figure out how the direct implementation works. 

The second article you linked does not show a similar example to the Reusable Custom Filter Exmaple DropDownListFilterComponent in the article https://www.telerik.com/kendo-angular-ui/components/grid/filtering/reusable-filter/ this is ideally what we want to implement with a MultiSelect so that we can reuse it in any grid. 

0
Nathan
Top achievements
Rank 1
answered on 19 Dec 2019, 02:17 PM

Also we are attempting to use the dataStateChange event not the filterChange event since we are calling out to a service for our other grid functionality such as sorting, paging, filtering. 

I will open up a support ticket so that I can privately send you the full code. 

0
Ivan
Telerik team
answered on 23 Dec 2019, 10:05 AM

Hi Nathan,

Using it as separate component will allow you to have this filter type as a reusable unit in your application. Else you can refer to this stackblitz sample, part of first article, which demonstrates the direct approach without reusable component.

Regards,
Ivan
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
Nathan
Top achievements
Rank 1
Answers by
Nathan
Top achievements
Rank 1
Dimiter Topalov
Telerik team
Ivan
Telerik team
Share this question
or