Editor + Selectize: inline edit

Editor + Selectize: inline edit

qlicqlic Posts: 3Questions: 2Answers: 0
edited July 2015 in Editor

Using Editor, when I click on the cell that should use selectize, the inline edit is not being activated. In the bubble edit, it works fine. Another plugin, ckeditor, also works fine, in both inline and bubble. Is there something I can do to get this selectize fields working for inline edit? Thanks!

uncaught exception: Unable to automatically determine field from source. Please specify the field name
// Activate an inline edit on click of a table cell
$('#datatable').on('click', 'tbody td:not(.no-inline-edit)', function (e) {
   editor.inline(this);
});

Editor:

                    {
                        label: "States:",
                        name: "states",
                        type: "selectize",
...(some more properties)..
}

Datatables columns property:

{data: "states_test", label: "states", editField: "states"},

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    The error message should actually link to this tech note. That it doesn't is a bug in the current version - sorry! The tech note explains in detail what the error you are seeing means and how to address it.

    Regards,
    Allan

  • qlicqlic Posts: 3Questions: 2Answers: 0

    Hi Allan,

    Thank you for your reply. Actually, as you can read above, I already tried the first solution. The second solution described in the link you supplied doesn't work either. It has something to do with the plugin.

    Thanks in advance!

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Yes, sorry I missed that.

    Are you able to give me a link to the page that uses the editField parameter so I can debug it please? I've just tried it locally and it appears to work okay.

    Thanks,
    Allan

This discussion has been closed.