This is a migrated thread and some comments may be shown as answers.

[Solved] DateTime filtering not working in Grid widget for Angular JS

1 Answer 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Casper
Top achievements
Rank 1
Casper asked on 16 Sep 2014, 12:21 PM
Hello,
I have setup a grid like this:
$scope.mainGridOptions = {
            dataSource: {
                transport: {
                    read: function (e) {
                        $http({ method: 'GET', url: myUrl, cache: true }).
                            success(function (data) {
                                e.success(data);
                            }).
                            error(function (data, status) {
                                console.log(status);
                            });
                    }
                },
                serverPaging: false,
                serverSorting: false,
                schema: {
                    model: {
                        fields: {
                            expiryDate: { type: "date" }
                        }
                    }
                }
            },
            sortable: true,
            filterable: {
                mode: "row, menu",
                operators: {
                    date: {
                        gt: "After",
                        lt: "Before"
                    }
                }
            }
           }

and filtering for a date before today works fine but using after produces no results at all. The data does contain data with dates in the future.
I am using the latest version v2014.2.903

Any ideas?
Thanks,
Casper

1 Answer, 1 is accepted

Sort by
0
Casper
Top achievements
Rank 1
answered on 16 Sep 2014, 12:55 PM
Please close this issue, seems to work as expected after all...
Tags
Grid
Asked by
Casper
Top achievements
Rank 1
Answers by
Casper
Top achievements
Rank 1
Share this question
or