Cannot extend unknown button type: selected
Cannot extend unknown button type: selected
tgrayson
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
This discussion has been closed.
Replies
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
Thank you.