ui-grid (3.0.0 unstable) cellFilter with dates issue -


ui-grid (3.0.0-rc.16) doesn't work when using filtering dates. filtering on other fields works well.

here comes punker:

http://plnkr.co/edit/b9nsk0 

try start entering 2014 date.

bug or missed something?

// main.js var app = angular.module('myapp', ['ui.grid', 'ui.grid.i18n']); app.controller('myctrl', function($scope) {   $scope.mydata = [{     eventname: "event1",     eventdateraw: new date(1416396274368),     eventdateformatted: new date(1416396274368)   }, {     eventname: "event2",     eventdateraw: new date(1416352423803),     eventdateformatted: new date(1416396274368)   }];    $scope.gridoptions = {     data: 'mydata',     columndefs: [{       name: 'eventname', width: "20%"     }, {       name: 'eventdateraw', width: "40%"     }, {       name: 'eventdateformatted', width: "40%",       cellfilter: 'date: "yyyy-mm-dd hh:mm:ss.sss"'     }],     enablefiltering: true   }; }); 

br remy44

try , add type:

{     name: 'eventdateformatted', width: "40%",     cellfilter: 'date: "yyyy-mm-dd hh:mm:ss.sss"',     type: 'date' } 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

How do you convert a timestamp into a datetime in python with the correct timezone? -