robinvanderknaap / MvcJqGrid

Fluent jqGrid Html Helper for ASP.NET MVC
www.playground.webpirates.nl/mvcjqgrid
GNU Lesser General Public License v3.0
101 stars 74 forks source link

Regarding selecting "less than" or "equal to" or "greater than" for filter options. #49

Closed ysamala closed 9 years ago

ysamala commented 10 years ago

Hi,

The control is perfect. I have one question, I have a date column where I am trying to filter the data on the grid and would like to set the different search type options on that column filter. Is it possible to do ? if so how ?

Here is the code snippet I am using for less than option, but would like to see if it is possible to select the type of search as well like "less than" or "equal" or "greater than".

.AddColumn(new Column("RequiredDate").SetFormatter(Formatters.Date).SetSearchType(Searchtype.Datepicker). SetSearchDateFormat("dd-mm-yy").SetSearchOption(SearchOptions.Less))

Please help.

Thanks & Regards, Sam