In my Kendo UI grid widget, I have a model schema set up for a field like this:
RS_LookBackDays: { type: "number", editable: true },
The columns configuration for the same field looks like this:
{ field: "RS_LookBackDays", title: "Rate Schedule – # Lookback Days", type: "number" },
I've implemented custom client-side filtering on a property connected to a text box, which is then applied to the dataSource upon clicking a search button.
if (ctrl.selectedRS_LookBackDays && ctrl.selectedRS_LookBackDays != '') {
var filter = { field: "RS_LookBackDays", operator: "eq", value: ctrl.selectedRS_LookBackDays };
filters.push(filter);
}
ctrl.kendoGrid.dataSource.filter(filters);
While filters work well on 'string' columns, when it comes to numeric columns, I encounter a client-side error message: 'TypeError: Object doesn't support property or method 'toLowerCase'". Despite specifying the column type in both the schema and the grid setup, I'm unable to resolve this issue.