Approved
Last Updated: 08 Oct 2019 08:30 by ADMIN

Reproduction of the problem

  1. Open dojo at https://dojo.telerik.com/@GaloisGirl/AqotEtep
  2. Click "Add expression" and pick "Product name",  "Is not equal to", "".
  3. Click "Apply". The grid show 77 items, as expected.
  4. Click "Add group" and then "Apply".

Current behavior

The grid shows 0 items. The expression preview is (Product Name Is not equal to '').

Expected/desired behavior

The grid should show 77 items. For an optimal user experience, the empty groups should be deleted when applying the filter.

Declined
Last Updated: 08 Oct 2019 10:03 by ADMIN

Reproduction of the problem

  1. Run the dojo at https://dojo.telerik.com/@GaloisGirl/uBiLIbiP/3 . The state of the filter is "(ContactTitle Is equal to 'Sales Representative')", however, the ContactTitle field has been commented out from the dataSource schema.

Current behavior

The error "TypeError: Cannot read property 'type' of undefined" is thrown

Expected/desired behavior

Some error should be thrown, but one that the developer can recognize and handle appropriately.

Your example of persisting state saves it in localStorage. Say my user saves the state on Monday, and by Tuesday, a column is removed, renamed, has a different type... I need to handle that user's deprecated saved state.


 

 

Approved
Last Updated: 11 Oct 2019 11:26 by ADMIN

When using the Filter control and configuring the Fields, if a 'number' type field is used, the value 0 (zero) is ignored, for example:


$("#filter").kendoFilter({
    dataSource: dataSource,
    expressionPreview: true,
    fields: [
      { name: "age", type:"number", defaultValue: 31 },
      {name: "foo", type: "number", defaultValue: 0},
      { name: "name", type:"string", defaultValue: "Rick" }
    ]
  });

'age' and 'foo' are both 'number' type fields, but the default value of 'foo' will be ignored when the filter is chosen in the UI.

 

Here is a runnable example of this, notice how when selecting 'age' from the fields dropdown, the value correctly defaults to 31, but selecting the 'foo' field will not have the value populate correctly:

https://dojo.telerik.com/eHAROSOz