Changing sTitle AFTER loading the table
Changing sTitle AFTER loading the table
So.. I've got this table that I load fine and I use:
[code]
"aoColumnDefs": [
{ "sTitle": "my header title", "aTargets": [0] },
{ "bVisible": false, "aTargets": [ 2 ] }
],
[/code]
But when I reload the data, i want to change the title of the header to something else.. but I run this code:
[code]
FilterItemsTable.fnReloadAjax("json/Get_EventFilterItems.ashx");
FilterItemsTable.fnDraw();
[/code]
And not sure where I can put the new header name.. ? :S
[code]
"aoColumnDefs": [
{ "sTitle": "my header title", "aTargets": [0] },
{ "bVisible": false, "aTargets": [ 2 ] }
],
[/code]
But when I reload the data, i want to change the title of the header to something else.. but I run this code:
[code]
FilterItemsTable.fnReloadAjax("json/Get_EventFilterItems.ashx");
FilterItemsTable.fnDraw();
[/code]
And not sure where I can put the new header name.. ? :S
This discussion has been closed.
Replies
Allan