Trying to get the editing to work

Trying to get the editing to work

kenrightskenrights Posts: 24Questions: 7Answers: 0

Hi Guys,

I'm trying to get the inline editing to work as shown in the example. Here's my post-changes live.datatables.net.
Here is my pre-changes live.datatables.net.

I added these entries to the html:

<!-- needed for editing tables per https://editor.datatables.net/examples/inline-editing/simple --> 
    <link href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
    <link href="https://cdn.datatables.net/buttons/1.5.6/css/buttons.dataTables.min.css" rel="stylesheet" type="text/css" />
    <link href="https://cdn.datatables.net/select/1.3.0/css/select.dataTables.min.css" rel="stylesheet" type="text/css" />
    <!-- THE NEXT ONE MIGHT BE THE WRONG PATH -->
    <link href="../../extensions/Editor/css/editor.dataTables.min.css" rel="stylesheet" type="text/css" />

I added a whole bunch of stuff to the javascript that I saw on the inline-editing page.

I've really broken it pretty bad. My search and cog icon are gone. There is only 1 check box that doesn't work. Does anyone have any suggestions?

Answers

  • colincolin Posts: 4,013Questions: 0Answers: 710

    Hi @kenrights ,

    In your example, you haven't initialised Editor, so it's just a plain DataTable. For Editor to work, you need to initialise that also, like this.

    Cheers,

    Colin

Sign In or Register to comment.