Button Dialog into Row details
Button Dialog into Row details
julien-tech
Posts: 2Questions: 0Answers: 0
Morning Guys,
I wanted to know if it was possible to have a dialog call via click into row details.
I have followed the example : http://www.datatables.net/examples/server_side/row_details.html
Into the function FormatDetails i would add an button which call the dialog via click :
/* Formating function for row details */
function fnFormatDetails ( oTable, nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += 'Rendering engine:'+aData[1]+' '+aData[4]+'';
sOut += 'Link to source:Could provide a link here';*/
sOut += 'Extra info:'+aData[1]+' - '+aData[3]+'';
sOut += 'Test/td>';
sOut += '';
return sOut;
}
I can see the button into row details but when i click on it nothing happen (dialog dont open).
If i put this button out of the function and put it into the html code, it works.
So the problem look like when i want to use this button into row details.
I'll really appreciate your help cuz i dont know what's blocking here.
Thx for your help.
I wanted to know if it was possible to have a dialog call via click into row details.
I have followed the example : http://www.datatables.net/examples/server_side/row_details.html
Into the function FormatDetails i would add an button which call the dialog via click :
/* Formating function for row details */
function fnFormatDetails ( oTable, nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += 'Rendering engine:'+aData[1]+' '+aData[4]+'';
sOut += 'Link to source:Could provide a link here';*/
sOut += 'Extra info:'+aData[1]+' - '+aData[3]+'';
sOut += 'Test/td>';
sOut += '';
return sOut;
}
I can see the button into row details but when i click on it nothing happen (dialog dont open).
If i put this button out of the function and put it into the html code, it works.
So the problem look like when i want to use this button into row details.
I'll really appreciate your help cuz i dont know what's blocking here.
Thx for your help.
This discussion has been closed.
Replies
http://datatables.net/forums/comments.php?DiscussionID=5162
Sorry for this double discussion