Json serialization or custom routine in c#
Json serialization or custom routine in c#
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
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
This discussion has been closed.
Replies
this is solved