Obtaining the value from a hidden column
Obtaining the value from a hidden column
Virtuallazy
Posts: 4Questions: 0Answers: 0
I have a datatable with 4 columns, the first of which is hidden and non-searchable. How can I gain the value from it when that row is clicked on?
The initialisation code is as follows;
[code]
var oTable;
var giRedraw = false;
var editor = new $.fn.dataTable.Editor( {
"ajaxUrl": "your/php/here.php",
"domTable": "#Concept",
"fields": [
{
"label": "ID",
"name": "ID",
"type": "text"
},
{
"label": "Idea",
"name": "Name",
"type": "textarea"
},
{
"label": "Details",
"name": "Description",
"type": "textarea"
},
{
"label": "Attributes",
"name": "Attributes",
"type": "text"
}
]
} );
oTable = $( "#Concept" ).dataTable( {
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"sDom": 'T<"clear">lfrtip',
"sAjaxSource": "your/php/here.php",
"aoColumns": [
{
"mData": "ID"
},
{
"mData": "Name"
},
{
"mData": "Description"
},
{
"mData": "Attributes"
}
],
"aoColumnDefs": [
{ "bSearchable": false, "bVisible": false, "aTargets": [0] }
],
"oTableTools": {
"sRowSelect": "single",
"aButtons": [
{ "sExtends": "editor_remove", "editor": editor }
]
}
} );
[/code]
The initialisation code is as follows;
[code]
var oTable;
var giRedraw = false;
var editor = new $.fn.dataTable.Editor( {
"ajaxUrl": "your/php/here.php",
"domTable": "#Concept",
"fields": [
{
"label": "ID",
"name": "ID",
"type": "text"
},
{
"label": "Idea",
"name": "Name",
"type": "textarea"
},
{
"label": "Details",
"name": "Description",
"type": "textarea"
},
{
"label": "Attributes",
"name": "Attributes",
"type": "text"
}
]
} );
oTable = $( "#Concept" ).dataTable( {
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"sDom": 'T<"clear">lfrtip',
"sAjaxSource": "your/php/here.php",
"aoColumns": [
{
"mData": "ID"
},
{
"mData": "Name"
},
{
"mData": "Description"
},
{
"mData": "Attributes"
}
],
"aoColumnDefs": [
{ "bSearchable": false, "bVisible": false, "aTargets": [0] }
],
"oTableTools": {
"sRowSelect": "single",
"aButtons": [
{ "sExtends": "editor_remove", "editor": editor }
]
}
} );
[/code]
This discussion has been closed.