Bug Found in TablesTools not working with json objects array as aaData

Bug Found in TablesTools not working with json objects array as aaData

nivniv Posts: 3Questions: 0Answers: 0
edited September 2011 in TableTools
Hi,

TablesTools not working with json objects array

this is my sample data

var ds_playlist = [
{
"stime": "2011-08-23T12:40:02",
"status": 0,
"channel": "RADIO ZU",
"artist": "DAN BALAN",
"title": "FREEDOM (RADIO-VIDEO EDIT)",
"track": "DAN BALAN - FREEDOM (RADIO-VIDEO EDIT)",
"position": 45,
"duration": 196,
"length": 215
},
{
"stime": "2011-08-23T12:35:32",
"status": 0,
"channel": "KISS FM",
"artist": "DAN BALAN",
"title": "FREEDOM (RADIO MIX)",
"track": "DAN BALAN - FREEDOM (RADIO MIX)",
"position": 5,
"duration": 182,
"length": 212
},..

here is my datatable init

$(document).ready(function () {

$('#nttgrid').dataTable({
"bJQueryUI": true,
"bAutoWidth": false,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
"aaData": ds_playlist,
"aoColumns": [
{ "mDataProp": "stime", "sTitle": "<%= Resources.Resource.StartTime %>" },
{ "mDataProp": "status", "sTitle": "<%= Resources.Resource.TypeOfBroadcast %>" },
{ "mDataProp": "channel", "sTitle": "<%= Resources.Resource.Channel %>" },
{ "mDataProp": "artist", "sTitle": "<%= Resources.Resource.Artist %>" },
{ "mDataProp": "title", "sTitle": "<%= Resources.Resource.SongTitle %>" },
{ "mDataProp": "track", "sTitle": "<%= Resources.Resource.Track %>" },
{ "mDataProp": "position", "sTitle": "<%= Resources.Resource.Position %>", "sClass": "center" },
{ "mDataProp": "duration", "sTitle": "<%= Resources.Resource.Duration %>", "sClass": "center" }
]

});

when clicking on one of the export buttons all data is undefined
This discussion has been closed.