Set some columns as non-editable

Set some columns as non-editable

justStevejustSteve Posts: 49Questions: 8Answers: 1
edited June 2010 in General
Wondering how i go about convincing jEditable to ignore some of DT's columns.

thx

Replies

  • ConorHigginsConorHiggins Posts: 9Questions: 0Answers: 0
    @justSteve, did you figure this out?
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited July 2011
    For each column, you can pass column defs that define the JEditable values. If you pass null for any column, there will be no JEditable action on that column:

    [code]
    $(document).ready(function() {
    $('#your_table').dataTable().makeEditable({
    "sUpdateURL": "qa_update.php",
    "aoColumns": [
    null, // column 0. this column is primary key, not editable
    { // col1
    placeholder : ' ',
    indicator: 'Saving...',
    tooltip: 'Dbl Click to edit',
    type: 'select',
    data: "{'':'', 'VOID':'VOID'}",
    onblur: 'submit'
    },
    { //col 2
    placeholder : ' ',
    indicator: 'Saving...',
    tooltip: 'Dbl Click to edit'
    },
    { //col 3
    placeholder : ' ',
    indicator: 'Saving...',
    tooltip: 'Dbl Click to edit'
    }
    ] // end of aoColumns
    });
    [/code]
This discussion has been closed.