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

[Solved] Date format for grid.filter

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rick
Top achievements
Rank 2
Rick asked on 07 Dec 2011, 12:18 AM
Can someone provide me a one line sample of setting the grids filter client-side using a date?
grid.filter('EventStartDate~ge~xxxxx'); // what is the correct format for the date (xxxxx)?
Using 2011.3.1115
Thanks!

1 Answer, 1 is accepted

Sort by
0
Rick
Top achievements
Rank 2
answered on 07 Dec 2011, 09:44 PM
Actually, I'm having trouble setting grid.filter to anything... the following line is giving a FilterPaserException - Expected token.

Filtering is turned on and I'm able to filter the grid using the UI, but not in script.
grid.filter("startswith(EventLocation.LocationName, 'staples')");
Tags
Grid
Asked by
Rick
Top achievements
Rank 2
Answers by
Rick
Top achievements
Rank 2
Share this question
or