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

Searchbuilder buttoned how to fix a constant column ?

$
0
0

I'm trying to wrap my head around searchBuilder and its configuration.
In my case i need only a column to be searched, so i want to be the only column to be auto-selected for every new condition i add
This column in my datas contains strings commas separated.
Since i'm using only that column with searchbuilder how can i autoselect for every new init condition the only column that is in the list ??
There is an event that i can use to set a default predefined column to be searched on ??

My button is configured this way:

{
            extend:'searchBuilder',
            className:'btn btn-sm btn-layer1 my-1',
            config: {
              columns: [3],
              preDefined: {
                criteria: [
                    {
                      data: 'Tags',
                      condition:'contains'
                    },
                 ],logic: 'AND'
              }
            }
          }

Viewing all articles
Browse latest Browse all 82433

Trending Articles



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