Events binding on elements in "details" pane do not work
Events binding on elements in "details" pane do not work
Hello,
I have some , and elements within the details row... I'm unable to bind any hover/click/whatever events on them... I read the FAQ and using fnDrawCallback/fnInitComplete works for all elements within the datatable but the details row.
[code]
/* Formating function for row details */
function fnFormatDetails ( nTr )
{
var aData = oTable.fnGetData( nTr );
sOut = ''+aData[8]+'';
sOut += ''+aData[7]+'test';
return sOut;
}
[/code]
What am I missing? Data comes from ajax source... Help is appreciated...!
I have some , and elements within the details row... I'm unable to bind any hover/click/whatever events on them... I read the FAQ and using fnDrawCallback/fnInitComplete works for all elements within the datatable but the details row.
[code]
/* Formating function for row details */
function fnFormatDetails ( nTr )
{
var aData = oTable.fnGetData( nTr );
sOut = ''+aData[8]+'';
sOut += ''+aData[7]+'test';
return sOut;
}
[/code]
What am I missing? Data comes from ajax source... Help is appreciated...!
This discussion has been closed.
Replies
"I read the FAQ and using fnDrawCallback/fnInitComplete works for all elements within the datatable but the details row."
@Allan: Can you reproduce the issue?
The solution is to use the "live" eventhandler in jQuery: http://api.jquery.com/live/
use live instead of bind or the event shortcut.