I'm currently troubleshooting an issue with the filters in an older project. Here's the HTML snippet:
<input type="text" class="form-control" ng-model="FilterEventsEdit"
ng-change="FilterEvents()"
style="width: 300px; margin-bottom: 5px; display: inline;">
And now onto the JavaScript:
$scope.FilterEvents = function () {
$scope.EventsGridDataSource.filter({
logic: "or",
filters: [
{ field: "Name", operator: "contains",
value: $scope.FilterEventsEdit },
{ field: "Expression", operator: "contains",
value: $scope.FilterEventsEdit }
]
});
};
Despite having a similar setup that works with different models, I keep getting $scope.FilterEventsEdit
as undefined
. The problem has me stumped.