Jqgrid search options not working for date column

I have a jqgrid with a date column in it. But when you perform a search operation on this date column, it does not produce any result, even if the data according to the search criteria is in the grid. I can't figure out why the search isn't working on the date column only in my jqGrid. Please help me if anyone knows the reason why the search is not working for the date column. Any help is appreciated.

+3


source to share


1 answer


If you are reporting your code to colModel it would be easy to understand the problem

Try replacing your colModel like this:



{ name: 'date', sortable: true, sortorder: "ASC", sorttype:"date", editable: false, formatter: 'date', formatoptions: { srcformat: 'd-m-Y', newformat: 'd-m-Y' }},

      

0


source







All Articles