partial get from server side
partial get from server side
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??
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??
This discussion has been closed.
Replies
Allan