DataTable Editor Not Showing Buttons

DataTable Editor Not Showing Buttons

amweissamweiss Posts: 13Questions: 3Answers: 0

Here is a link to where I have it running

http://www.thriveonsoftware.com/admin/reports/question_edit.php

I've put all the jscript files, made sure that dom: "Bfrtip", but can't get the edit, remove, create to show...any ideas what I'm doing wrong here?

Thanks,
Allen

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,934Questions: 26Answers: 5,067

    Looks like you are loading some of the JS and CSS files twice. I would remove these:

    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.2.4/css/buttons.dataTables.min.css">
    
    <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.2.4/js/dataTables.buttons.min.js"></script>
    <script type="text/javascript" src="../../sdk/DataTables/datatables.min.js"></script>
    

    They are being loaded by the packaged scripts.

    I would move the Editor CSS and JS to load after the Datatables CSS and JS.

    See if that helps.

    Kevin

  • amweissamweiss Posts: 13Questions: 3Answers: 0

    Thanks...that helped get the buttons back...now the checkboxes are gone which allowed selecting a row and deleting it if you want....Am I missing something that would give me that again?

  • kthorngrenkthorngren Posts: 21,934Questions: 26Answers: 5,067
    Answer ✓

    The CSS and script inclusions should look like this:

    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.13/b-1.2.4/se-1.2.0/datatables.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../sdk/Editor-PHP-1.6.1/css/editor.dataTables.css">
    
    <script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.12.4.js"></script> 
    <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.13/b-1.2.4/se-1.2.0/datatables.min.js"></script>
    <script type="text/javascript" src="../../sdk/Editor-PHP-1.6.1/js/dataTables.editor.js"></script>
    

    Remove what you have and replace with the above.

    Kevin

  • amweissamweiss Posts: 13Questions: 3Answers: 0

    Great...thank you so much...really appreciated.

This discussion has been closed.