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

Custom filters enhancements

3 Answers 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ján
Top achievements
Rank 1
Ján asked on 04 Aug 2017, 09:15 AM

In Kendo UI for Angular 2 we have a custom filter (very similar to your provided example http://www.telerik.com/kendo-angular-ui/components/grid/filtering/reusable-filter/#toc-reusable-custom-filter-components), it works nicely,  but we get a compilation warning:

 export 'CompositeFilterDescriptor' was not found in '@progress/kendo-data-query'

 

Additionally would it not make sense to extend the base class BaseFilterCellComponent with properties 

@Input() public column: ColumnComponent;
@Input() public filter: CompositeFilterDescriptor;

as they are needed by all filters (also seen in your example in dropdownlist-filter.component.ts). so custom filter implementors dont need to add them. Decorators on properties are inherited now in Angular/typescript

3 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 08 Aug 2017, 06:20 AM
Hello Ján,

We received several reports about this issue, but we suspect that the warning is caused by the followingAngular/CLI and Webpack issue:

https://github.com/angular/angular-cli/issues/2034

We believe that until the issue gets fixed on their side, you can safely ignore the warning, and use the discussed interface.

Thank you BaseFilterCellComponent extending suggestion. We will explore the opportunities, enabled by the enhancements, provided by Angular, allowing decorators inheritance, but in general we are cautious when it comes to introducing updates that may lead to breaking changes in existing applications.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Inian
Top achievements
Rank 1
answered on 08 Feb 2018, 05:16 PM

The warning will be removed by using this code: 

import * as [InsertNameHere] from '@progress/kendo-data-query';

Then I use it like this: [InsertNameHere].CompositeFilterDescriptor

0
Dimiter Topalov
Telerik team
answered on 09 Feb 2018, 08:50 AM
Hello Inian,

Thank you very much for sharing this workaround with the community.

It is indeed a straight-forward approach to remove the innocuous but still undesired warning.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Ján
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Inian
Top achievements
Rank 1
Share this question
or