partial get from server side

partial get from server side

noNamenoName Posts: 12Questions: 0Answers: 0
edited September 2012 in General
Hello,

I was in need of some columns to show in dataTables which I don't get from server, for eg a checkBox(for delete). I get error saying that particular column is undefined.


[code]
{ "sName": "select_p.id", "aTargets": [ 0 ] },
{ "sName": "select_p.name","bSortable":false, "aTargets": [ 1 ] },
{ "sName": "select_p.address", "bSortable":false,"aTargets": [ 2 ] },
{ "sName": "select_p.country", "bSortable":false,"aTargets": [ 3 ] },
{ "sName": "checkBox", "bSortable":false, "aTargets": [ 4 ],
"fnRender": function(oObj ){
return "";
}
}

[/code]


now by my code at server side I only select and return only 4 columns and not the 5th one. I have fixed it by putting dummy data from server, but IS THEIR ANY BETTER WAY OF ACHIEVING SAME??

Replies

This discussion has been closed.