Higlighting a row based on the value in a hidden column

Higlighting a row based on the value in a hidden column

GrooverGroover Posts: 5Questions: 0Answers: 0
edited August 2013 in General
Hi,

I have created a datatable with the following configuration:

[code]
eTable = $('#example').dataTable( {
"bLengthChange": false,
"iDisplayLength": 10,
"sScrollY": "100%",
"sScrollX": "100%",
"sScrollYInner": "100%",
"bScrollCollapse" :false,
"bAutoWidth": true,
"bProcessing": true,
"bServerSide": false,
"bJQueryUI": true,
"bStateSave": true,
"sPaginationType": "full_numbers",

"sAjaxSource": "getAlerts",
"aoColumns": [
{
"mDataProp": "0",
"sClass": "control center"
},
{
"mDataProp": "1",
"sClass": "control center"
},
{
"mDataProp": "2",
"sClass": "control center"
},
{
"mDataProp": "3",
"sClass": "control center"
},
{
"mDataProp": "4",
"bVisible": false,
}
],
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$('td', nRow).attr('nowrap','nowrap');
return nRow;
}
});
[/code]


I would like to highlight/select a row in the column by the press of a button located outside the datatable itself.

The condition for the row to be selected is a value provided in textfield that should correspond to the value stored in the hidden column.

Any ideas how to find a row and highlight it based on a value in a hidden column?

Thanks!
This discussion has been closed.