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

Criteria filter crashes after applying checkbox filter.

2 Answers 96 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 2
Iron
Christopher asked on 24 Jul 2017, 06:20 PM

If you attempt to choose a criteria filter after applying a "checkbox" filter, the filter will error out with:

Uncaught TypeError: Cannot read property 'criteria' of undefined<br> at eval (eval at setter (https://kendo.cdn.telerik.com/2017.2.621/js/kendo.all.min.js:25:31060), <anonymous>:3:15)

 

This appears to be a bug in the spreadsheet as it appears in our application as well as the Kendo UI demo.

 

Steps to reproduce:

1) Go to the filtering demo: http://demos.telerik.com/kendo-ui/spreadsheet/sorting-filtering

2) Click the filter on the "Client" column.

3) Uncheck a few of the client values then hit apply.

4) Click the filter again, but this time expand the filter by criteria.

5) Select an item from the dropdown.

6) Notice a javascript error occurs, and the filter cannot be applied.

2 Answers, 1 is accepted

Sort by
0
Christopher
Top achievements
Rank 2
Iron
answered on 24 Jul 2017, 06:43 PM

Looking into this it appears that the spreadsheet/filtermenu's "operatorChange" event handler is not handling a situation where the customFilter property hasn't been set yet. 

The fix appears to be to check for it's presence, and if not found, create the default values via the reset() method and then the operator can be set properly.

I've created the bug & fix report on Github here.

0
Veselin Tsvetanov
Telerik team
answered on 26 Jul 2017, 11:03 AM
Hi Christopher,

Thank you for the detailed explanation of the case and the suggested bug fix.

The reported issue is a known bug in the Spreadsheet filtering functionality. The bug fix has been implemented and the fix is currently in the queue for QA testing. Here you could find the GitHub item on this issue.

Regards,
Veselin Tsvetanov
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.
Tags
Spreadsheet
Asked by
Christopher
Top achievements
Rank 2
Iron
Answers by
Christopher
Top achievements
Rank 2
Iron
Veselin Tsvetanov
Telerik team
Share this question
or