Json serialization or custom routine in c#

Json serialization or custom routine in c#

kjmkjm Posts: 19Questions: 0Answers: 0
edited November 2009 in General
Hi,

I am now generating Json like

[code]
{"sEcho":1,"iTotalRecords":10,"iTotalDisplayRecords":10,"aaData":[["developer","kurt"],["plumber","john"]]}
[/code]

why is this not displaying?


[code]
function OnAddReferralClick(){
$('#demo').html('');
//setup the grid
oTable = $('#example').dataTable(
{

"bServerSide": true,
"sAjaxSource": "/Referral/Json",
"aoColumns": [null, { "bSearchable": false, "sWidth": "40px" }]

}

);
[/code]


and also if I remove the "aoColumns" then the grid complains of 'length is null or not an object' at line 4645

[code]
for ( i=0, iLen=bUseCols ? oInit.aoColumns.length : nThs.length ; i

Replies

  • kjmkjm Posts: 19Questions: 0Answers: 0
    oooooooooooops...now it works

    this is solved
This discussion has been closed.