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

Editor buttons - How to disable columns in a multiselect edit button?

$
0
0

I use select and have a collection button ... where I call the edit function to edit the selected records like this:

...
{
extend: 'collection',
text: 'Select',
buttons: 
{
    extend: 'selectRows',
    text:   'Select Rows'
}, {
    extend: 'selectNone',
    text:   'Deselect All'
}, {
    extend: 'edit',
    text:   'Edit selected',
    action: function ( e, dt, node, config ) {
        var rows = table_books.rows( '.selected' );
        rows
            //.disable( 'books.name' )
            .edit({
            title: 'Edit Records',
                buttons: [
                ...
              ]
        });     


       }
  }]
}
...

In general it works ... but when I want to disable a column ... //.disable( 'books.name' ) ... I'm getting:

console error:

TypeError: rows.edit(...).disable is not a function

What am I missing? And how to disable columns in a multiselect edit button?


Viewing all articles
Browse latest Browse all 82108

Trending Articles



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