get json string from server side load data ,column caption not created

get json string from server side load data ,column caption not created

pranaysonipranaysoni Posts: 23Questions: 2Answers: 0
edited April 2012 in General
I have problem to create json string for server side load data ,in that rows created successfully but column caption not display or not created.

i used to create caption





$(function () {
var oTable = $('#example').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "JsonToHTML/jsonstring.txt"
});
});




First Way :
{"sEcho":1,"iTotalRecords":1,"iTotalDisplayRecords":1,
"aoColumnDefs": [ { "sName": "engine", "aTargets": [ 0 ] }],
"aaData":[["Hi"]]}


Second Way:
{"sEcho":1,"iTotalRecords":1,"iTotalDisplayRecords":1,
"aoColumns": [{ "sTitle": "Engine" }],
"aaData":[["Hi"]]}

3rd way:

{"sEcho":1,"iTotalRecords":1,"iTotalDisplayRecords":1,
"sColumns": [{ "sName": "Engine" }],
"aaData":[["Hi"]]}


please reply me ...
i m waiting for reply.....


thank u.
This discussion has been closed.