This project is read-only.

Date Filter is Not working.

Feb 14, 2015 at 10:01 AM
Hi Bukharin,

I am trying to filter results using the datepicker However, I cannot get the filter to work properly like it does in the example page (http://gridmvc.azurewebsites.net/).
my code is-
@Html.Grid(Model).Named("xmlGrid").Columns(columns =>
{
columns.Add(c => c.id).Titled("S/No.");
columns.Add(c => c.file_path).Titled("File Path");
columns.Add(c => c.tbl_station.station).Titled("Station").RenderValueAs(d => d.station_id == null ? string.Empty : d.tbl_station.station).SetFilterWidgetType("StationFilterWidget").Filterable(true);
columns.Add(c => c.created_on).Titled("Processed On").Format("{0:yyyy/MM/dd}").Filterable(true);
columns.Add(c => c.status).Titled("Status").Filterable(true).SetFilterWidgetType("XmlStatusFilterWidget");    
}).Sortable(false).WithMultipleFilters()
So please reply me as soon as possible..

Thank you
Feb 23, 2015 at 10:00 AM
Did you resolve problem????
I think that you must render empty column

columns.Add(c => c.id).Titled("S/No.");
columns.Add(c => c.file_path).Titled("File Path");
columns.Add().Titled("Station").RenderValueAs(d => d.station_id == null ? string.Empty : d.tbl_station.station).SetFilterWidgetType("StationFilterWidget").Filterable(true);
columns.Add(c => c.created_on).Titled("Processed On").Format("{0:yyyy/MM/dd}").Filterable(true);
columns.Add(c => c.status).Titled("Status").Filterable(true).SetFilterWidgetType("XmlStatusFilterWidget");