Grid mvc does not filter columns of DateTime type

Dec 10, 2013 at 12:31 PM
I am using grid MVC to display some data. one column represents the date of record creation. When trying to filter items on tha tcolumn - Grid mvc does not function as expected. When you click on the filter button, it shows the correct date filter, however, pressing on the date, you want to filter by does not initialize the call to the server with the grid filter properties. Instead it creates a new script on the client side which looks similar to this:

function onclick(event) {
DP_jQuery_1386675012508.datepicker._selectDay('#dp1386675012513',11,2013, this);return false;
}
function onclick(event) {
DP_jQuery_1386675012508.datepicker._selectDay('#dp1386675012513',11,2013, this);return false;
}
Coordinator
Dec 11, 2013 at 4:10 AM
Hi

Which datepicker controler are you using?
In the inline demo gridmvc uses this datepicker control - https://www.nuget.org/packages/Grid.Mvc.DatePicker/
Dec 11, 2013 at 12:15 PM
I am using the simple jquery datepicker
Coordinator
Dec 13, 2013 at 3:39 AM
I guess that api of your datepicker does not compatible with the grid. You can create your own filterwidget for your datepicker plugin. For more infomation please see https://gridmvc.codeplex.com/wikipage?title=Creating%20custom%20filter%20widget&referringTitle=Documentation