Cant get my show/hide details to work

Cant get my show/hide details to work

hassan1984hassan1984 Posts: 2Questions: 0Answers: 0
edited March 2011 in General
i m using datatables for first time but cant get any data out when using show/hide details i just cant figure out what i am doing wrong, have seen many others discussions on this topic but it didnt help hopefully somebody can help me figuring this out.
"[code]





var oTable;

/* Formating function for row details */
function fnFormatDetails ( nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += 'Rendering engine:'+aData[1]+' '+aData[2]+'';
sOut += 'Link to source:Could provide a link here';
sOut += 'Extra info:And any further details here (images etc)';
sOut += '';

return sOut;
}



$(document).ready(function() {
oTable = $('#example').dataTable( {
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/inc/server_processing_keylend.php",
"oLanguage": {
"sSearch": "S

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    I don't see anything obviously wrong - I'd suggest adding in a few console.log() debug statements into the live event handler and see what code is being executed and the execution path. The basic idea looks fine.

    Allan
  • hassan1984hassan1984 Posts: 2Questions: 0Answers: 0
    olanguage part works fine but it stops working when I add the code show/hide details. I m hidding the keyid column but again adding the show/hide code the column isnt hidden anymore. The table shows the data fine without the show/hide code.
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Did you add some debug statements to the live event? I think it would be instruct to see if that code is being executed and what it is actually doing.

    Allan
This discussion has been closed.