dataTable Editor , Edit in Cell without display Label
dataTable Editor , Edit in Cell without display Label
Sunilgoel
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
This discussion has been closed.
Answers
I'm afraid I don't fully understand the question. Could you illustrate with an example please?
Allan
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
Is the sheet name not the existing data? If not, what is the data point you want to edit?
Allan
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
Sounds like you want to use a leftJoin with a
select
input type, like in this example.Allan