I'm trying to add a Datepicker filter on a JQGrid toolbar. When I click on the date filter, no problem the Datepicker shows up, but when I select my date, nothing happen. The date I've chose doesn't appear in the toolbar filter and of curse no search is launch. Did I miss something? Here is my code:
colModel: [
{ name: 'Period', index: 'Period', align: 'left', formatter: 'date',
search: true,
searchoptions: {
dataInit: function (el) {
$(el).datepicker({
changeYear: true,
changeMonth: true,
showButtonPanel: true,
dateFormat: 'dd-mm-yy',
onSelect: function(dateText, inst) {
$("#grid_id")[0].triggerToolbar();
}
});
}
}}
]
Thanks in advance for your help!