searchPanes and serverside render
searchPanes and serverside render
 we0038            
            
                Posts: 45Questions: 15Answers: 1
we0038            
            
                Posts: 45Questions: 15Answers: 1            
            
            
                            
                                  in SearchPanes             
        I have a column is_colsed ** which has a value of either **0 or 1
in my table, I render the value to some icon which also render fine in the searchPanes. However, once I set my table to serverSide the serchPanes shows 0 and 1
After some research, I used searchPanes options like this
{
        searchPanes: {
          show: true,
          options: [
            {
              label: 'Closed',
              value: function (rowData, rowIdx) {
                return rowData.issue.is_closed == 1;
              }
            },
            {
              label: 'Open',
              value: function (rowData, rowIdx) {
                return rowData.issue.is_closed == 0;
              }
            }
          ]
        },
        targets: [8]
},
However, the filter does not work properly with options!
Any suggestion is appreciated.
Answers
It worth mentioning that I also tried
setFormatterandgetFormatterlike this
but that didn't work either