Drill-down data - Page 3
Drill-down data
This discussion has been closed.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
© 2007-2023 MIT licensed. Privacy policy. Supporters.
SpryMedia Ltd is registered in Scotland, company no. SC456502.
Replies
> "rowspan=2"
should be:
> rowspan="2"
And a closing is missing for the second row.
http://live.datatables.net/aXIr/3/edit
Allan
I have used your code to have drill down option. Instead of creating a div in the function fnFormatDetails, i need to create another data table dynamically. is it possible?
Thanks,
Anitha
@ Anitha - Sure - just put the table into the HTML and then initialise the new DataTAble.
Allan
I am using the drill down option and it works with my table, it's great. But I am trying to integrate a dataTable inside the dataTable... So basically, inside the outer dataTable, I click on the + button, to slide down the inner content, and inside the inner content is another dataTable.
so I know it's complicated, but is it possible?
I've been trying for hours to no avail.
Here's the test site:
http://modernguild.com/sites/all/modules/guild/mg/jquery-datatable/course.php
And here's the code:
view-source:http://modernguild.com/sites/all/modules/guild/mg/jquery-datatable/course.php
The code is too long to post here, sorry :(
Here is my ajax call:
$.ajax({
url:"data.php",
dataType:"json",
data:{
"action":"activePrograms"
},
success:function(data){
oTable = $('#example').dataTable( {
"bProcessing": true,
"aaData": data,
"aoColumns": [
{
"mData": null,
"sClass": "control center",
"sDefaultContent": ''
},
{ "mData": null,
"sName" : "prg_count"},
{ "mData": "prg_name" },
{ "mData": "market" },
{ "mData": "beta_date" },
{ "mData": "rtc_date" },
{ "mData": null,
"sName" : "prg_cpro"}
]
} );
}
} );
is possible that when I click on the row and the div appears, instead of a div appearing new rows making a ajax call??