Cannot extend unknown button type: selected

Cannot extend unknown button type: selected

tgraysontgrayson Posts: 5Questions: 1Answers: 0

This works:

{ extend: 'create', editor: editor }

This gets the error:

{ extend: 'edit', editor: editor }

Full code:
...

 $('#TestTable').DataTable({
        ajax: {
            url: '/Maintenance/ActSchoolMappingList',
            dataSrc: ''
        },

        dom: 'Bfrtip',
        columns: [
            { data: 'SchoolCode' },
            { data: 'SchoolName' },
            // etc
        ],
        select: true,
        paging: false,
        searching: false,
        buttons: [

           // { extend: 'create', editor: editor },               
          { extend: 'edit', editor: editor }

        ]
    });

...

Debugger info; http://debug.datatables.net/uwaqeb

Replies

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    Hi,

    You need to include the Select extension if you want to use the Editor buttons as they extend the buttons made available by Select.

    Allan

  • tgraysontgrayson Posts: 5Questions: 1Answers: 0

    Thank you.

This discussion has been closed.