dataTable Editor , Edit in Cell without display Label

dataTable Editor , Edit in Cell without display Label

SunilgoelSunilgoel Posts: 48Questions: 19Answers: 0

Hi ,
When i am editing any cell , display label , how can i remove label and edit directly in cell .

Regards.
Sunil

Answers

  • allanallan Posts: 63,281Questions: 1Answers: 10,425 Site admin

    I'm afraid I don't fully understand the question. Could you illustrate with an example please?

    Allan

  • SunilgoelSunilgoel Posts: 48Questions: 19Answers: 0

    Hi Allan,
    I am using dataTables Editor and define like this

    editor = new $.fn.dataTable.Editor({
    ajax: "sheet_serverside.php",
    table: "#viewsheettable",
    idSrc: "sheetno",
    fields: [ {
    label: \'Sheet Name\',
    name: \'sheet_name\'
    },
    {
    label: \'Log Date\',
    name: \'log_datetime\',
    type: \'datetime\'
    },
    {
    label: \'Assign To\',
    name: \'assign_to_name\'
    }
    ]
    });

    here if i click in sheet name cell , it show like this

    Sheet Name
    input box with existing data of cell

    and dataTables allows me to edit , Now my question , i do not required Label Name (eg sheet Name) just show input box with existing cell data .

    how can i do this.

    Regards.
    Sunil

  • allanallan Posts: 63,281Questions: 1Answers: 10,425 Site admin

    Is the sheet name not the existing data? If not, what is the data point you want to edit?

    Allan

  • SunilgoelSunilgoel Posts: 48Questions: 19Answers: 0

    Hi Allan,

    I want to edit assign to in the sheet, I have many sheet names in the tables and every sheet has to be assign to caller , that is why i need edit , table view will like this

    slno# sheet Name Log Date Assign To

    1 sheet_ap 01.03.2017 None

    I want to Edit None and put James there. That is why i want to use editor.

    Regards
    Sunil

  • allanallan Posts: 63,281Questions: 1Answers: 10,425 Site admin

    Sounds like you want to use a leftJoin with a select input type, like in this example.

    Allan

This discussion has been closed.