[CLOSED] dynamic date filter not working
I have added dynamic filter to grid which is dynamically created as below:
Code:
DateFilter df = new DateFilter();
df.DataIndex = "MONTH_YEAR";
df.DatePickerOptions.TodayText = "Now";
df.Format = "MMM-yy";
gf.Filters.Add(df);
I am binding the model field to store as :
Code:
model.Fields.Add(new ModelField("MONTH_YEAR"));
the date format it displays as : Aug-13, May-13
But when i use the filter no record shows up. What am i missing.
Also how do i customize the filter to only show Months on the date picker
Thanks in advance