Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82226

searchPanes and serverside render

$
0
0

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.


Viewing all articles
Browse latest Browse all 82226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>