Hi,
Below is my code,
var _fltMain = { logic: "or", filters: [] };
var _fltRegion = { logic: "or", filters: [] };
_fltRegion.filters.push({ field: "Region", operator: "contains", value: searchText });
var _fltOAMOrders = { logic: "or", filters: [] };
_fltOAMOrders.filters.push({ field: "OAMOrders", operator: "contains", value: searchText });
_fltMain.filters.push(_fltRegion);
_fltMain.filters.push(_fltOAMOrders);
$("#reportGrid").data("kendoGrid").dataSource.query({ filter: _fltMain });
This Code works fine for first filter but not working for fltOAMOrders this filter.
It gives error
Microsoft JScript runtime error: Object doesn't support this property or method
((d.OAMOrders || '').toLowerCase().indexOf('56') >= 0)
because it is of type decimal.
Please help.
Thanks,
Sunny.
Below is my code,
var _fltMain = { logic: "or", filters: [] };
var _fltRegion = { logic: "or", filters: [] };
_fltRegion.filters.push({ field: "Region", operator: "contains", value: searchText });
var _fltOAMOrders = { logic: "or", filters: [] };
_fltOAMOrders.filters.push({ field: "OAMOrders", operator: "contains", value: searchText });
_fltMain.filters.push(_fltRegion);
_fltMain.filters.push(_fltOAMOrders);
$("#reportGrid").data("kendoGrid").dataSource.query({ filter: _fltMain });
This Code works fine for first filter but not working for fltOAMOrders this filter.
It gives error
Microsoft JScript runtime error: Object doesn't support this property or method
((d.OAMOrders || '').toLowerCase().indexOf('56') >= 0)
because it is of type decimal.
Please help.
Thanks,
Sunny.