uncaught exception: Cannot extend unknown button type: create
uncaught exception: Cannot extend unknown button type: create
ddobbins
Posts: 8Questions: 2Answers: 0
Hello, when i use a ajax call in my datatable to get my data the extend buttons create, edit, remove my page throws an error "uncaught exception: Cannot extend unknown button type: create". i have tried implementing it using the bootstrap 3 example here but that doesn't work either. here is a link http://live.datatables.net/hagaqomo/1/edit?html,js,output
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
One problem with your test case is the file references are for local resources so they won't work in the http://live.datatables.net sandbox environment. However it does look like the order of the file is incorrect. For example you need to load "datatables.min.js" before loading "dataTables.buttons.min.js". Take a closer look at the example you you linked to see the order of the libraries loaded. Both in the JS and CSS tabs.
A good option is to use the Download builder to get the proper files and order based on your selection.
Kevin
Kevin,
i have reordered the css and js files but still no luck, i have changed my solution back to calling the ajax to get my data first then use that data to load the table. the add and delete buttons work but the when i hit the edit button the data is not loaded from the table. any ideas on how to resolve this?
Without seeing you code in action its hard to say what the problem is. Can you post a link to your page or a test case showing the issue?
Kevin
```(function ($) {
var editor, table;
})(jQuery);
here is my Javascript.
and here is what i am seeing when i select the first record to edit
The problem might be that your Editor and Datatables column configs don't match.
For Editor you have:
For DT you have:
The
name
in Editor needs to match thedata
in Datatables. Its case sensitive so they both need to be either "multiplier" or "Multiplier".Kevin
Kevin! you are the man!
thank you so much!