I am building my first ASP.NET MVC 3 application and using jqGrid. One of my columns, Created Fragrance, is a date column, and I would like to filter the grid in that column using a DatePicker. Here's what is currently happening: the user clicks on the column header filter field, displays the date selection, and then the user selects the year, month, and clicks per day. The collector leaves and leaves the date, say, 03/28/2009, in the text box. To actually make the filter work, I have to click on it and press the Enter key, which annoys the user a bit.
Is there a way to automatically activate the filter when the user clicks that day?
(Aside, Iโm not sure that the โFinishโ button is used, since the collector leaves whenever I click on the day. Perhaps this is a parameter that I miss.)
Has anyone else needed this feature and solved it?
I tried to do something like this:
dataInit: function (elem) { $(elem).datepicker({ changeYear: true, changeMonth: true, showButtonPanel: true, onSelect: function (dateText, inst) { $("#icecreamgrid")[0].trigger("reloadGrid"); } }) }
as I saw someone on some website, but that doesn't seem to work.
source share