1

I am implementing grid.mvc. I am almost done without one thing. For my column named "DTTM" i have standard filter, but i would like to have caledanr that i could put equal to some date, less/greater or betwen for my field DTTM. Can you help me out what i am missing? Note that i have grid.mvc.datepicker reference as well.

this is my current code:

@Html.Grid(Model).Named("grdGrid").Sortable(True).Columns(Function(col) col.Add(Function(o) o.Id)).Columns(Function(col) col.Add(Function(o) o.DTTM, "Date").Titled("Date").Format("{0:dd/MM/yyyy hh:mm:ss tt}")).Columns(Function(col) col.Add(Function(o) o.MessageType)).Columns(Function(col) col.Add(Function(o) o.Service)).Columns(Function(col) col.Add(Function(o) o.Level)).Columns(Function(col) col.Add(Function(o) o.Message)).WithPaging(15).Sortable(True).Filterable(True).WithMultipleFilters()
Arie
  • 3,041
  • 7
  • 32
  • 63

1 Answers1

0

Refer to this post:- Date filter not working in gridmvc

Specify the format for the date column and add desired js and css files.

Community
  • 1
  • 1
anu
  • 305
  • 1
  • 5
  • 14