Criteria filter crashes after applying checkbox filter.

3 posts, 0 answers
  1. Christopher
    Christopher avatar
    42 posts
    Member since:
    Jan 2017

    Posted 24 Jul 2017 Link to this post

    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. Christopher
    Christopher avatar
    42 posts
    Member since:
    Jan 2017

    Posted 24 Jul 2017 Link to this post

    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.

  3. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    1201 posts

    Posted 26 Jul 2017 Link to this post

    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.
Back to Top