Pending Review
Last Updated: 11 May 2016 12:27 by ADMIN
Adrian
Created on: 03 Jan 2014 03:54
Category: Data Source
Type: Feature Request
12
Datasource filter "contains" on schema "number" with ignorecase item errors
Create a datasource with a schema that has number fields.

Try to filter by one of these fields using a "contains" and an ignorecase and kendoui creates an expression like

(function(d, __f, __o) {
return ((d.MyNumber || '').toLowerCase().indexOf('12') >= 0)
})

this errors because the number does not have a toLowerCase() method.

Our code is generic and we do not want to have to change ignorecase depending on the data-type, as sometime the filter will be on a string and sometimes on a number. Can a fix be put in place to allow this combination to run without error.

Thanks.
1 comment
Adrian
Posted on: 03 Jan 2014 03:57
Sorry, even with ignoreCase false this errors because numbers do have have an indexOf(...) method.